diff options
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 | } |