aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-25 15:53:43 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-25 15:53:43 +0100
commit90a06febf7b54540ac8bdf3c9ae89c062c1f2466 (patch)
tree26b2eeb1cd240ab5554d5bb8abec7189dbf6f571 /src/core
parent93d202bdabc1aef0352c7054e8933b036c7adef0 (diff)
downloadgnunet-90a06febf7b54540ac8bdf3c9ae89c062c1f2466.tar.gz
gnunet-90a06febf7b54540ac8bdf3c9ae89c062c1f2466.zip
fix leak
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core_api.c5
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}