leak
authorChristian Grothoff <christian@grothoff.org>
Sun, 13 Jun 2010 15:15:25 +0000 (15:15 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 13 Jun 2010 15:15:25 +0000 (15:15 +0000)
src/util/service.c

index 6159d2edf62d18ffaabce30257353b459a6377e6..a4316768d8858b767f1e5117658398780ad005c7 100644 (file)
@@ -925,6 +925,7 @@ GNUNET_SERVICE_get_server_addresses (const char *serviceName,
                       _("Failed to resolve `%s': %s\n"),
                       hostname, gai_strerror (ret));
           GNUNET_free (hostname);
+         GNUNET_free (unixpath);
          if (desc != NULL)
            GNUNET_break (GNUNET_OK == GNUNET_NETWORK_socket_close (desc));
           return GNUNET_SYSERR;
@@ -945,6 +946,7 @@ GNUNET_SERVICE_get_server_addresses (const char *serviceName,
                       disablev6 ? "IPv4 " : "", hostname);
           freeaddrinfo (res);
           GNUNET_free (hostname);
+         GNUNET_free (unixpath);
           return GNUNET_SYSERR;
         }
       resi = i;