aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/plugin_datastore_sqlite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datastore/plugin_datastore_sqlite.c')
-rw-r--r--src/datastore/plugin_datastore_sqlite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c
index 3f05280a84..2e8b53e21c 100644
--- a/src/datastore/plugin_datastore_sqlite.c
+++ b/src/datastore/plugin_datastore_sqlite.c
@@ -1634,10 +1634,10 @@ libgnunet_plugin_datastore_sqlite_done (void *cls)
if (plugin->drop_on_shutdown)
fn = GNUNET_strdup (plugin->fn);
database_shutdown (plugin);
- plugin->env = NULL;
- plugin->payload = 0;
GNUNET_STATISTICS_destroy (plugin->statistics);
GNUNET_ARM_stop_services (plugin->env->cfg, plugin->env->sched, "statistics", NULL);
+ plugin->env = NULL;
+ plugin->payload = 0;
GNUNET_free (api);
if (fn != NULL)
{