From: Christian Grothoff Date: Tue, 18 Oct 2011 16:28:13 +0000 (+0000) Subject: leak X-Git-Tag: initial-import-from-subversion-38251~16420 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1698944df8b50f470aa8dc6860329a9d43542fcc;p=oweals%2Fgnunet.git leak --- diff --git a/src/vpn/gnunet-daemon-exit.c b/src/vpn/gnunet-daemon-exit.c index 75db415d9..b88dd0f08 100644 --- a/src/vpn/gnunet-daemon-exit.c +++ b/src/vpn/gnunet-daemon-exit.c @@ -680,7 +680,8 @@ read_service_conf (void *cls __attribute__ ((unused)), const char *section) if (ret != 0) { - GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "No addresses found for %s!\n", hostname); + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "No addresses found for %s!\n", hostname); + GNUNET_free (serv); continue; } else @@ -706,6 +707,7 @@ read_service_conf (void *cls __attribute__ ((unused)), const char *section) else { freeaddrinfo(res); + GNUNET_free (serv); continue; } freeaddrinfo(res);