From 1b081dce5a25bf612d6711662b06483b18069617 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 13 Jun 2012 08:34:40 +0000 Subject: [PATCH] - fix --- src/namestore/gnunet-service-namestore.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index 4d497c8a1..7483c0a89 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c @@ -251,8 +251,11 @@ cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) struct GNUNET_NAMESTORE_Client * nc; struct GNUNET_NAMESTORE_Client * next; - GNUNET_SERVER_notification_context_destroy (snc); - snc = NULL; + if (NULL != snc) + { + GNUNET_SERVER_notification_context_destroy (snc); + snc = NULL; + } GNUNET_CONTAINER_multihashmap_iterate(zonekeys, &zone_to_disk_it, NULL); GNUNET_CONTAINER_multihashmap_destroy(zonekeys); -- 2.25.1