From 503717fce30f57907482678fb1abfe468309d7b1 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Mon, 1 Jan 2018 18:54:29 -0600 Subject: [PATCH] Fix memory leaks in cadet tests --- src/cadet/cadet_test_lib.c | 1 + src/cadet/test_cadet.c | 1 + 2 files changed, 2 insertions(+) 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); } -- 2.25.1