aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/plugin_datastore_sqlite.c
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2009-10-25 10:57:43 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2009-10-25 10:57:43 +0000
commit09209f241af7025ce3566b348abfa8d03a9b83c9 (patch)
tree55113c83d4002cfd8a044ac736d579ad2bc85118 /src/datastore/plugin_datastore_sqlite.c
parent167b8f5c1562859648ace9ae2f8f108977f833a0 (diff)
make sure stats that are being set can be committed on destroy
git-svn-id: https://gnunet.org/svn/gnunet@9275 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/datastore/plugin_datastore_sqlite.c')
-rw-r--r--src/datastore/plugin_datastore_sqlite.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c
index 57ff6266f3..f083a12e5f 100644
--- a/src/datastore/plugin_datastore_sqlite.c
+++ b/src/datastore/plugin_datastore_sqlite.c
@@ -1631,7 +1631,8 @@ libgnunet_plugin_datastore_sqlite_done (void *cls)
if (plugin->drop_on_shutdown)
fn = GNUNET_strdup (plugin->fn);
database_shutdown (plugin);
- GNUNET_STATISTICS_destroy (plugin->statistics);
+ GNUNET_STATISTICS_destroy (plugin->statistics,
+ GNUNET_YES);
plugin->env = NULL;
plugin->payload = 0;
GNUNET_free (api);