aboutsummaryrefslogtreecommitdiff
path: root/src/statistics
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-25 18:25:38 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-25 18:25:38 +0000
commitdd5c5752d74e1080ce076c68c887e6431b6f9051 (patch)
tree4be79b1e243e0b3aa149e4348230946533752e66 /src/statistics
parent91931536b86d21b1e29ff91e37161099e98374d3 (diff)
downloadgnunet-dd5c5752d74e1080ce076c68c887e6431b6f9051.tar.gz
gnunet-dd5c5752d74e1080ce076c68c887e6431b6f9051.zip
-fixing #2459
Diffstat (limited to 'src/statistics')
-rw-r--r--src/statistics/gnunet-statistics.c8
1 files changed, 1 insertions, 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,
115static void 115static void
116cleanup (void *cls, int success) 116cleanup (void *cls, int success)
117{ 117{
118 struct GNUNET_STATISTICS_Handle *h = cls;
119
120 if (success != GNUNET_OK) 118 if (success != GNUNET_OK)
121 { 119 {
122 FPRINTF (stderr, "%s", _("Failed to obtain statistics.\n")); 120 FPRINTF (stderr, "%s", _("Failed to obtain statistics.\n"));
123 ret = 1; 121 ret = 1;
124 } 122 }
125 if (NULL != h) 123 GNUNET_SCHEDULER_shutdown ();
126 {
127 GNUNET_STATISTICS_destroy (h, GNUNET_NO);
128 h = NULL;
129 }
130} 124}
131 125
132 126