leak
authorChristian Grothoff <christian@grothoff.org>
Fri, 11 Jun 2010 19:10:58 +0000 (19:10 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 11 Jun 2010 19:10:58 +0000 (19:10 +0000)
src/util/service.c

index ee1a3151fff29c92bfd5fc68610cbf65517e5f14..681edd8d30571bd2a1175c3dba37967c3dc8849f 100644 (file)
@@ -923,6 +923,8 @@ GNUNET_SERVICE_get_server_addresses (const char *serviceName,
                       _("Failed to resolve `%s': %s\n"),
                       hostname, gai_strerror (ret));
           GNUNET_free (hostname);
+         if (desc != NULL)
+           GNUNET_break (GNUNET_OK == GNUNET_NETWORK_socket_close (desc));
           return GNUNET_SYSERR;
         }
       next = res;