-fix
authorChristian Grothoff <christian@grothoff.org>
Tue, 24 Apr 2012 12:03:05 +0000 (12:03 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 24 Apr 2012 12:03:05 +0000 (12:03 +0000)
src/hostlist/test_gnunet_daemon_hostlist_learning.c

index 9ef8812f6a2fb1a8aa09cdb57910129627f17af3..ed03ebfdc945afa75b32f8703ee126afea191b4c 100644 (file)
@@ -109,6 +109,16 @@ shutdown_testcase ()
     GNUNET_STATISTICS_get_cancel (advsent_stat);
     advsent_stat = NULL;
   }
+  if (NULL != adv_peer.stats)
+  {
+    GNUNET_STATISTICS_destroy (adv_peer.stats);
+    adv_peer.stats = NULL;
+  }
+  if (NULL != learn_peer.stats)
+  {
+    GNUNET_STATISTICS_destroy (learn_peer.stats);
+    learn_peer.stats = NULL;
+  }
   if (check_task != GNUNET_SCHEDULER_NO_TASK)
   {
     GNUNET_SCHEDULER_cancel (check_task);