diff options
-rw-r--r-- | src/datastore/gnunet-service-datastore.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c index ba0e246d2..eb0373039 100644 --- a/src/datastore/gnunet-service-datastore.c +++ b/src/datastore/gnunet-service-datastore.c | |||
@@ -1459,8 +1459,11 @@ cleaning_task (void *cls, | |||
1459 | } | 1459 | } |
1460 | if (GNUNET_YES == do_drop) | 1460 | if (GNUNET_YES == do_drop) |
1461 | plugin->api->drop (plugin->api->cls); | 1461 | plugin->api->drop (plugin->api->cls); |
1462 | unload_plugin (plugin); | 1462 | if (NULL != plugin) |
1463 | plugin = NULL; | 1463 | { |
1464 | unload_plugin (plugin); | ||
1465 | plugin = NULL; | ||
1466 | } | ||
1464 | if (NULL != filter) | 1467 | if (NULL != filter) |
1465 | { | 1468 | { |
1466 | GNUNET_CONTAINER_bloomfilter_free (filter); | 1469 | GNUNET_CONTAINER_bloomfilter_free (filter); |