From: Christian Grothoff Date: Wed, 25 Jan 2017 14:53:43 +0000 (+0100) Subject: fix leak X-Git-Tag: taler-0.2.1~305 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=90a06febf7b54540ac8bdf3c9ae89c062c1f2466;p=oweals%2Fgnunet.git fix leak --- diff --git a/src/core/core_api.c b/src/core/core_api.c index b6d8f61d2..18b07068f 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -204,6 +204,11 @@ disconnect_and_free_peer_entry (void *cls, pr)); GNUNET_MQ_destroy (pr->mq); GNUNET_assert (NULL == pr->mq); + if (NULL != pr->env) + { + GNUNET_MQ_discard (pr->env); + pr->env = NULL; + } GNUNET_free (pr); return GNUNET_YES; }