From: Christian Grothoff Date: Mon, 25 Jun 2012 18:25:38 +0000 (+0000) Subject: -fixing #2459 X-Git-Tag: initial-import-from-subversion-38251~12823 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dd5c5752d74e1080ce076c68c887e6431b6f9051;p=oweals%2Fgnunet.git -fixing #2459 --- 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 (); }