-fixing #2459
authorChristian Grothoff <christian@grothoff.org>
Mon, 25 Jun 2012 18:25:38 +0000 (18:25 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 25 Jun 2012 18:25:38 +0000 (18:25 +0000)
src/statistics/gnunet-statistics.c

index add2ddf413861205ed230a38b2c5d9ea57252420..ba13d6f5fb04d3485f282f51f447a3c2712e99e0 100644 (file)
@@ -115,18 +115,12 @@ printer (void *cls, const char *subsystem, const char *name, uint64_t value,
 static void
 cleanup (void *cls, int success)
 {
-  struct GNUNET_STATISTICS_Handle *h = cls;
-
   if (success != GNUNET_OK)
   {
     FPRINTF (stderr, "%s", _("Failed to obtain statistics.\n"));
     ret = 1;
   }
-  if (NULL != h)
-  {
-    GNUNET_STATISTICS_destroy (h, GNUNET_NO);
-    h = NULL;
-  }
+  GNUNET_SCHEDULER_shutdown ();
 }