From: David Barksdale Date: Tue, 2 Jan 2018 00:54:29 +0000 (-0600) Subject: Fix memory leaks in cadet tests X-Git-Tag: gnunet-0.11.0rc0~37 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=503717fce30f57907482678fb1abfe468309d7b1;p=oweals%2Fgnunet.git Fix memory leaks in cadet tests --- diff --git a/src/cadet/cadet_test_lib.c b/src/cadet/cadet_test_lib.c index 1df6bff0d..20ef028b2 100644 --- 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 index 5cc9706d7..b9f177652 100644 --- 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); }