diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-07 10:57:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-07 10:57:14 +0000 |
commit | d7057d4ffea66ec77f90d57c5be0f8448c451f31 (patch) | |
tree | e844a9621fb21bdf6a756b5541c8c9cde6a04d86 /src/datastore | |
parent | 12100c9e78074d60745ce320aeed78c68658fcfe (diff) | |
download | gnunet-d7057d4ffea66ec77f90d57c5be0f8448c451f31.tar.gz gnunet-d7057d4ffea66ec77f90d57c5be0f8448c451f31.zip |
-fix segv
Diffstat (limited to 'src/datastore')
-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); |