prevent crash on exit
authorChristian Grothoff <christian@grothoff.org>
Tue, 21 Feb 2017 09:42:28 +0000 (10:42 +0100)
committerChristian Grothoff <christian@grothoff.org>
Tue, 21 Feb 2017 09:42:28 +0000 (10:42 +0100)
src/util/service_new.c

index 1b3254cca1d1f3e884060e81ffcff03700746f42..00d05dacc31c66cce121d198dc7701ace11e0d93 100644 (file)
@@ -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;
   }