diff options
author | David Barksdale <amatus@amat.us> | 2017-10-09 16:10:52 -0500 |
---|---|---|
committer | David Barksdale <amatus@amat.us> | 2017-10-09 16:10:52 -0500 |
commit | 9885d037e3a8a1e605d3f18732ec3719a725d85a (patch) | |
tree | 259de7dd092d30277b48449ea8c55dec92fd0773 /src/transport/transport-testing.c | |
parent | 704722e37ac066bf1f304c93ecf198cbf7fd26be (diff) | |
download | gnunet-9885d037e3a8a1e605d3f18732ec3719a725d85a.tar.gz gnunet-9885d037e3a8a1e605d3f18732ec3719a725d85a.zip |
Fix memory leak in transport-testing
Diffstat (limited to 'src/transport/transport-testing.c')
-rw-r--r-- | src/transport/transport-testing.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 | |||
678 | GNUNET_CONFIGURATION_destroy (p->cfg); | 678 | GNUNET_CONFIGURATION_destroy (p->cfg); |
679 | p->cfg = NULL; | 679 | p->cfg = NULL; |
680 | } | 680 | } |
681 | if (NULL != p->handlers) | ||
682 | { | ||
683 | GNUNET_free (p->handlers); | ||
684 | p->handlers = NULL; | ||
685 | } | ||
681 | GNUNET_CONTAINER_DLL_remove (tth->p_head, | 686 | GNUNET_CONTAINER_DLL_remove (tth->p_head, |
682 | tth->p_tail, | 687 | tth->p_tail, |
683 | p); | 688 | p); |