gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] 02/02: fix leak


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 02/02: fix leak
Date: Wed, 25 Jan 2017 15:53:47 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

commit 90a06febf7b54540ac8bdf3c9ae89c062c1f2466
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Jan 25 15:53:43 2017 +0100

    fix leak
---
 src/core/core_api.c | 5 +++++
 1 file changed, 5 insertions(+)

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;
 }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]