aboutsummaryrefslogtreecommitdiff
path: root/src/statistics/gnunet-statistics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/statistics/gnunet-statistics.c')
-rw-r--r--src/statistics/gnunet-statistics.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/statistics/gnunet-statistics.c b/src/statistics/gnunet-statistics.c
index b1a447cf3..2de58a070 100644
--- a/src/statistics/gnunet-statistics.c
+++ b/src/statistics/gnunet-statistics.c
@@ -162,8 +162,9 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
162 162
163 if (NULL == h) 163 if (NULL == h)
164 return; 164 return;
165 GNUNET_assert (GNUNET_OK == 165 if (NULL != subsystem && NULL != name)
166 GNUNET_STATISTICS_watch_cancel (h, subsystem, name, &printer, h)); 166 GNUNET_assert (GNUNET_OK ==
167 GNUNET_STATISTICS_watch_cancel (h, subsystem, name, &printer, h));
167 GNUNET_STATISTICS_destroy (h, GNUNET_NO); 168 GNUNET_STATISTICS_destroy (h, GNUNET_NO);
168 h = NULL; 169 h = NULL;
169} 170}