From: Matthias Wachs Date: Wed, 13 Jun 2012 08:34:40 +0000 (+0000) Subject: - fix X-Git-Tag: initial-import-from-subversion-38251~13100 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1b081dce5a25bf612d6711662b06483b18069617;p=oweals%2Fgnunet.git - fix --- 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);