-fix leak
authorChristian Grothoff <christian@grothoff.org>
Mon, 13 Feb 2012 14:55:36 +0000 (14:55 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 13 Feb 2012 14:55:36 +0000 (14:55 +0000)
src/dns/gnunet-service-dns.c

index d95d88a934da912c63e69ccb3490f273001b0d96..371713eec08cdd79a0a0dc37eee543665e612dde 100644 (file)
@@ -462,6 +462,7 @@ open_socket (int af)
     break;
   default:
     GNUNET_break (0);
+    GNUNET_NETWORK_socket_close (ret);
     return NULL;
   }
   sa->sa_family = af;