-fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 11 Jul 2013 16:27:19 +0000 (16:27 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 11 Jul 2013 16:27:19 +0000 (16:27 +0000)
src/namestore/gnunet-namestore.c

index 9f7eb7ed073774b52d6c0c3b0f04860ce15f0df0..56e2859d02f87b6e3357c24754d2d695a3544cb8 100644 (file)
@@ -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,