From: Christian Grothoff Date: Wed, 12 Oct 2011 12:01:24 +0000 (+0000) Subject: checknull X-Git-Tag: initial-import-from-subversion-38251~16598 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=46ed1469d3e4886a14659e4944090a05b6546757;p=oweals%2Fgnunet.git checknull --- diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c index 1216988b3..5e25ac907 100644 --- a/src/core/gnunet-service-core_clients.c +++ b/src/core/gnunet-service-core_clients.c @@ -813,8 +813,11 @@ GSC_CLIENTS_done () while (NULL != (c = client_head)) handle_client_disconnect (NULL, c->client_handle); - GNUNET_SERVER_notification_context_destroy (notifier); - notifier = NULL; + if (NULL != notifier) + { + GNUNET_SERVER_notification_context_destroy (notifier); + notifier = NULL; + } GNUNET_SERVER_mst_destroy (client_mst); client_mst = NULL; }