gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit 503717fce30f57907482678fb1abfe468309d7b1
parent 18a677a335becdb59d22cc60a04253268ed2ecd6
Author: David Barksdale <amatus@amat.us>
Date:   Mon,  1 Jan 2018 18:54:29 -0600

Fix memory leaks in cadet tests

Diffstat:
Msrc/cadet/cadet_test_lib.c | 1+
Msrc/cadet/test_cadet.c | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/cadet/cadet_test_lib.c b/src/cadet/cadet_test_lib.c @@ -241,6 +241,7 @@ GNUNET_CADET_TEST_cleanup (struct GNUNET_CADET_TEST_Context *ctx) } GNUNET_free (ctx->ops); GNUNET_free (ctx->cadets); + GNUNET_free (ctx->handlers); GNUNET_free (ctx); GNUNET_SCHEDULER_shutdown (); } diff --git a/src/cadet/test_cadet.c b/src/cadet/test_cadet.c @@ -828,6 +828,7 @@ disconnect_handler (void *cls, GNUNET_SCHEDULER_add_now (&gather_stats_and_exit, (void *) __LINE__); } + GNUNET_free (ch_w); }