From dd5c5752d74e1080ce076c68c887e6431b6f9051 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 25 Jun 2012 18:25:38 +0000 Subject: [PATCH] -fixing #2459 --- src/statistics/gnunet-statistics.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/statistics/gnunet-statistics.c b/src/statistics/gnunet-statistics.c index add2ddf41..ba13d6f5f 100644 --- a/src/statistics/gnunet-statistics.c +++ b/src/statistics/gnunet-statistics.c @@ -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 (); } -- 2.25.1