From 52823794ba38b80110b6de742d4f4167989b2cf7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 11 Jul 2013 16:27:19 +0000 Subject: [PATCH] -fix --- src/namestore/gnunet-namestore.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c index 9f7eb7ed0..56e2859d0 100644 --- a/src/namestore/gnunet-namestore.c +++ b/src/namestore/gnunet-namestore.c @@ -218,6 +218,11 @@ do_shutdown (void *cls, GNUNET_NAMESTORE_zone_monitor_stop (zm); zm = NULL; } + if (NULL != data) + { + GNUNET_free (data); + data = NULL; + } } @@ -670,7 +675,6 @@ testservice_task (void *cls, &add_continuation, &add_qe_uri); } - GNUNET_free_non_null (data); if (monitor) { zm = GNUNET_NAMESTORE_zone_monitor_start (cfg, -- 2.25.1