gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] 02/04: Fix memory leak in transport-testing


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 02/04: Fix memory leak in transport-testing
Date: Mon, 09 Oct 2017 23:12:04 +0200

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

david-barksdale pushed a commit to branch master
in repository gnunet.

commit 9885d037e3a8a1e605d3f18732ec3719a725d85a
Author: David Barksdale <address@hidden>
AuthorDate: Mon Oct 9 16:10:52 2017 -0500

    Fix memory leak in transport-testing
---
 src/transport/transport-testing.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/transport/transport-testing.c 
b/src/transport/transport-testing.c
index 918d70a9d..68cda3bd7 100644
--- a/src/transport/transport-testing.c
+++ b/src/transport/transport-testing.c
@@ -678,6 +678,11 @@ GNUNET_TRANSPORT_TESTING_stop_peer (struct 
GNUNET_TRANSPORT_TESTING_PeerContext
     GNUNET_CONFIGURATION_destroy (p->cfg);
     p->cfg = NULL;
   }
+  if (NULL != p->handlers)
+  {
+    GNUNET_free (p->handlers);
+    p->handlers = NULL;
+  }
   GNUNET_CONTAINER_DLL_remove (tth->p_head,
                                tth->p_tail,
                                p);

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



reply via email to

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