diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-10-25 10:57:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-10-25 10:57:43 +0000 |
commit | 42dbd0d48e6bd38d58c7d58d523f5f71efed22a0 (patch) | |
tree | 55113c83d4002cfd8a044ac736d579ad2bc85118 /src/hostlist/gnunet-daemon-hostlist.c | |
parent | f4dfb3bfeadf3ce0788fef942804fe4f25e7fc99 (diff) | |
download | gnunet-42dbd0d48e6bd38d58c7d58d523f5f71efed22a0.tar.gz gnunet-42dbd0d48e6bd38d58c7d58d523f5f71efed22a0.zip |
make sure stats that are being set can be committed on destroy
Diffstat (limited to 'src/hostlist/gnunet-daemon-hostlist.c')
-rw-r--r-- | src/hostlist/gnunet-daemon-hostlist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c index 7d075cf80..5aa4e70ea 100644 --- a/src/hostlist/gnunet-daemon-hostlist.c +++ b/src/hostlist/gnunet-daemon-hostlist.c | |||
@@ -115,7 +115,8 @@ cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
115 | { | 115 | { |
116 | if (stats != NULL) | 116 | if (stats != NULL) |
117 | { | 117 | { |
118 | GNUNET_STATISTICS_destroy (stats); | 118 | GNUNET_STATISTICS_destroy (stats, |
119 | GNUNET_NO); | ||
119 | stats = NULL; | 120 | stats = NULL; |
120 | } | 121 | } |
121 | } | 122 | } |