From 5b3c3de94552584e205a6a60eb48540e69cf96b9 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Fri, 20 Jul 2012 14:57:25 +0000 Subject: [PATCH] fix mem leak --- src/testbed/gnunet-service-testbed.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/testbed/gnunet-service-testbed.c b/src/testbed/gnunet-service-testbed.c index 7fc9ad219..5cc9482b4 100644 --- a/src/testbed/gnunet-service-testbed.c +++ b/src/testbed/gnunet-service-testbed.c @@ -787,8 +787,10 @@ handle_init (void *cls, { LOG (GNUNET_ERROR_TYPE_WARNING, "Cannot determine the ip of master controller: %s\n", STRERROR (errno)); + GNUNET_free (addr); GNUNET_assert (0); } + GNUNET_free (addr); LOG_DEBUG ("Master Controller IP: %s\n", master_context->master_ip); master_context->system = GNUNET_TESTING_system_create ("testbed", master_context->master_ip); -- 2.25.1