From 46ed1469d3e4886a14659e4944090a05b6546757 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 12 Oct 2011 12:01:24 +0000 Subject: [PATCH] checknull --- src/core/gnunet-service-core_clients.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; } -- 2.25.1