From dedd5548c1fa90f04080389d0826e0e8d3c0ad8c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 19 Oct 2009 12:28:50 +0000 Subject: [PATCH] leak --- src/util/resolver_api.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util/resolver_api.c b/src/util/resolver_api.c index b2c8fda66..cbd8392bf 100644 --- a/src/util/resolver_api.c +++ b/src/util/resolver_api.c @@ -105,7 +105,10 @@ check_config (const struct GNUNET_CONFIGURATION_Handle *cfg) (0 == inet_pton (AF_INET6, hostname, &v6)) ) - return; + { + GNUNET_free (hostname); + return; + } i = 0; while (loopback[i] != NULL) if (0 == strcmp (loopback[i++], hostname)) -- 2.25.1