diff options
author | David Barksdale <amatus@amat.us> | 2018-01-01 18:54:29 -0600 |
---|---|---|
committer | David Barksdale <amatus@amat.us> | 2018-01-01 18:59:06 -0600 |
commit | 503717fce30f57907482678fb1abfe468309d7b1 (patch) | |
tree | 9b0b0d202ccf0e9d7b6ca050ee89458f43d96cea /src | |
parent | 18a677a335becdb59d22cc60a04253268ed2ecd6 (diff) | |
download | gnunet-503717fce30f57907482678fb1abfe468309d7b1.tar.gz gnunet-503717fce30f57907482678fb1abfe468309d7b1.zip |
Fix memory leaks in cadet tests
Diffstat (limited to 'src')
-rw-r--r-- | src/cadet/cadet_test_lib.c | 1 | ||||
-rw-r--r-- | src/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 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) | |||
241 | } | 241 | } |
242 | GNUNET_free (ctx->ops); | 242 | GNUNET_free (ctx->ops); |
243 | GNUNET_free (ctx->cadets); | 243 | GNUNET_free (ctx->cadets); |
244 | GNUNET_free (ctx->handlers); | ||
244 | GNUNET_free (ctx); | 245 | GNUNET_free (ctx); |
245 | GNUNET_SCHEDULER_shutdown (); | 246 | GNUNET_SCHEDULER_shutdown (); |
246 | } | 247 | } |
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, | |||
828 | GNUNET_SCHEDULER_add_now (&gather_stats_and_exit, | 828 | GNUNET_SCHEDULER_add_now (&gather_stats_and_exit, |
829 | (void *) __LINE__); | 829 | (void *) __LINE__); |
830 | } | 830 | } |
831 | GNUNET_free (ch_w); | ||
831 | } | 832 | } |
832 | 833 | ||
833 | 834 | ||