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

index c1cfdb62fe1213ba23cf38ba785af1138b136e03..fd789295d12899f53c26c3d34adb89be6e475d6e 100644 (file)
@@ -835,7 +835,7 @@ GNUNET_CORE_disconnect (struct GNUNET_CORE_Handle *handle)
     GNUNET_MQ_destroy (handle->mq);
     handle->mq = NULL;
   }
-  GNUNET_free (handle->handlers);
+  GNUNET_free_non_null (handle->handlers);
   GNUNET_free (handle);
 }