From: David Barksdale Date: Mon, 9 Oct 2017 21:10:52 +0000 (-0500) Subject: Fix memory leak in transport-testing X-Git-Tag: gnunet-0.11.0rc0~102^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9885d037e3a8a1e605d3f18732ec3719a725d85a;p=oweals%2Fgnunet.git Fix memory leak in transport-testing --- 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);