leak
authorChristian Grothoff <christian@grothoff.org>
Mon, 19 Oct 2009 12:28:50 +0000 (12:28 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 19 Oct 2009 12:28:50 +0000 (12:28 +0000)
src/util/resolver_api.c

index b2c8fda666cbd4b6ebb0a86f91518aa72bdd127a..cbd8392bfff8b212061ed54ff745752c96b808e0 100644 (file)
@@ -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))