leak
authorChristian Grothoff <christian@grothoff.org>
Mon, 18 Jul 2011 07:00:37 +0000 (07:00 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 18 Jul 2011 07:00:37 +0000 (07:00 +0000)
src/hostlist/test_gnunet_daemon_hostlist_learning.c

index 3134f22ae4c07f388a1420225f7d6a90ef144eb4..51bad3bbbbc248123e9cbeacbeec8c8a261da989 100644 (file)
@@ -359,6 +359,8 @@ ad_arrive_handler (void *cls,
   if ('\0' != end[ntohs(message->size) - sizeof (struct GNUNET_MessageHeader) - 1])
     {
       GNUNET_break (0);
+      GNUNET_free (expected_uri);
+      GNUNET_free_non_null (hostname);
       return GNUNET_SYSERR;
     }
   current_adv_uri = GNUNET_strdup (end);