-fix leak
authorChristian Grothoff <christian@grothoff.org>
Mon, 13 Feb 2012 15:00:46 +0000 (15:00 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 13 Feb 2012 15:00:46 +0000 (15:00 +0000)
src/dns/gnunet-helper-dns.c

index 43d3954e44e033991c2feddb0b4c150f09730c32..dfeb45af8f8840c7d1812743681a579d52ad90f5 100644 (file)
@@ -233,6 +233,7 @@ init_tun (char *dev)
   if (fd >= FD_SETSIZE)
   {
     fprintf (stderr, "File descriptor to large: %d", fd);
+    (void) close (fd);
     return -1;
   }