leak
authorChristian Grothoff <christian@grothoff.org>
Tue, 18 Oct 2011 16:28:13 +0000 (16:28 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 18 Oct 2011 16:28:13 +0000 (16:28 +0000)
src/vpn/gnunet-daemon-exit.c

index 75db415d991a37dadf61f439e7a3c7c13d5313bb..b88dd0f08ef4d5da694284caebeacf61c51286a0 100644 (file)
@@ -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);