diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-25 15:53:43 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-25 15:53:43 +0100 |
commit | 90a06febf7b54540ac8bdf3c9ae89c062c1f2466 (patch) | |
tree | 26b2eeb1cd240ab5554d5bb8abec7189dbf6f571 /src/core | |
parent | 93d202bdabc1aef0352c7054e8933b036c7adef0 (diff) | |
download | gnunet-90a06febf7b54540ac8bdf3c9ae89c062c1f2466.tar.gz gnunet-90a06febf7b54540ac8bdf3c9ae89c062c1f2466.zip |
fix leak
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core_api.c | 5 |
1 files changed, 5 insertions, 0 deletions
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, | |||
204 | pr)); | 204 | pr)); |
205 | GNUNET_MQ_destroy (pr->mq); | 205 | GNUNET_MQ_destroy (pr->mq); |
206 | GNUNET_assert (NULL == pr->mq); | 206 | GNUNET_assert (NULL == pr->mq); |
207 | if (NULL != pr->env) | ||
208 | { | ||
209 | GNUNET_MQ_discard (pr->env); | ||
210 | pr->env = NULL; | ||
211 | } | ||
207 | GNUNET_free (pr); | 212 | GNUNET_free (pr); |
208 | return GNUNET_YES; | 213 | return GNUNET_YES; |
209 | } | 214 | } |