-fix leak
authorChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2012 10:34:52 +0000 (10:34 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2012 10:34:52 +0000 (10:34 +0000)
src/vpn/gnunet-helper-vpn.c

index b93ce2382fd3c261c9a76e9ea8092035c86afede..a6035d1d182b68d57184dbe4421a6a92ee884745 100644 (file)
@@ -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;
   }