From e9b2b4007f75dee7837e50edf385cd965a8a4a64 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 19 Oct 2009 11:32:33 +0000 Subject: [PATCH] leak --- src/datastore/gnunet-service-datastore.c | 6 ++++++ src/datastore/perf_datastore_api.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c index 03dfb47c2..f80abef06 100644 --- a/src/datastore/gnunet-service-datastore.c +++ b/src/datastore/gnunet-service-datastore.c @@ -1195,6 +1195,11 @@ cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) { unload_plugin (plugin); plugin = NULL; + if (filter != NULL) + { + GNUNET_CONTAINER_bloomfilter_free (filter); + filter = NULL; + } } @@ -1296,6 +1301,7 @@ run (void *cls, if (NULL == plugin) { GNUNET_CONTAINER_bloomfilter_free (filter); + filter = NULL; return; } GNUNET_SERVER_disconnect_notify (server, &cleanup_reservations, NULL); diff --git a/src/datastore/perf_datastore_api.c b/src/datastore/perf_datastore_api.c index 4ba8216bf..1bee3ee57 100644 --- a/src/datastore/perf_datastore_api.c +++ b/src/datastore/perf_datastore_api.c @@ -313,6 +313,8 @@ run_continuation (void *cls, GNUNET_free (crc); ok = 0; break; + default: + GNUNET_assert (0); } } -- 2.25.1