diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2009-10-25 10:57:43 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2009-10-25 10:57:43 +0000 |
commit | 09209f241af7025ce3566b348abfa8d03a9b83c9 (patch) | |
tree | 55113c83d4002cfd8a044ac736d579ad2bc85118 /src/datastore/plugin_datastore_sqlite.c | |
parent | 167b8f5c1562859648ace9ae2f8f108977f833a0 (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.c | 3 |
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); |