From 1698944df8b50f470aa8dc6860329a9d43542fcc Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 18 Oct 2011 16:28:13 +0000 Subject: [PATCH] leak --- src/vpn/gnunet-daemon-exit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.25.1