fix memory leak
[oweals/gnunet.git] / 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);
 }