summaryrefslogtreecommitdiff
path: root/src/vpn/gnunet-helper-vpn.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-25 10:34:52 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-25 10:34:52 +0000
commita8703426ac309a2646e89c1a90ef368afa90cec9 (patch)
treeaa947adafed9bf1805fa5f823934824b6820e742 /src/vpn/gnunet-helper-vpn.c
parent5ad22fe9b0fdad16e2bef4788720bfd2d7a7903e (diff)
-fix leak
Diffstat (limited to 'src/vpn/gnunet-helper-vpn.c')
-rw-r--r--src/vpn/gnunet-helper-vpn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vpn/gnunet-helper-vpn.c b/src/vpn/gnunet-helper-vpn.c
index b93ce2382..a6035d1d1 100644
--- a/src/vpn/gnunet-helper-vpn.c
+++ b/src/vpn/gnunet-helper-vpn.c
@@ -91,6 +91,7 @@ init_tun (char *dev)
if (fd >= FD_SETSIZE)
{
fprintf (stderr, "File descriptor to large: %d", fd);
+ (void) close (fd);
return -1;
}