leak
authorChristian Grothoff <christian@grothoff.org>
Mon, 19 Oct 2009 11:32:33 +0000 (11:32 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 19 Oct 2009 11:32:33 +0000 (11:32 +0000)
src/datastore/gnunet-service-datastore.c
src/datastore/perf_datastore_api.c

index 03dfb47c24536160cdfd56030c1ed8085be8282d..f80abef0653c54319135d371220cc06a14ebbde8 100644 (file)
@@ -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);
index 4ba8216bf89bd8a4e292034b44e2ce5619edf35b..1bee3ee57253627e70b5f9efb772543e8f0c165b 100644 (file)
@@ -313,6 +313,8 @@ run_continuation (void *cls,
       GNUNET_free (crc);
       ok = 0;
       break;
+    default:
+      GNUNET_assert (0);      
     }
 }