From a5c4a4b1c66b2bab197d0690881d6f3bdc56a833 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 21 Feb 2017 10:42:28 +0100 Subject: [PATCH] prevent crash on exit --- src/util/service_new.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/service_new.c b/src/util/service_new.c index 1b3254cca..00d05dacc 100644 --- a/src/util/service_new.c +++ b/src/util/service_new.c @@ -1627,7 +1627,7 @@ GNUNET_SERVICE_starT (const char *service_name, sh->handlers = GNUNET_MQ_copy_handlers (handlers); if (GNUNET_OK != setup_service (sh)) { - GNUNET_free (sh->handlers); + GNUNET_free_non_null (sh->handlers); GNUNET_free (sh); return NULL; } -- 2.25.1