From: Christian Grothoff Date: Tue, 21 Feb 2017 09:42:28 +0000 (+0100) Subject: prevent crash on exit X-Git-Tag: taler-0.2.1~115 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a5c4a4b1c66b2bab197d0690881d6f3bdc56a833;p=oweals%2Fgnunet.git prevent crash on exit --- 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; }