From 6f0b9128b407d0c8a54ae2bd50bab8a8aea194c9 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 28 Feb 2014 03:07:19 +0900 Subject: [PATCH] tests: Fix leak --- tests/nghttp2_frame_test.c | 2 ++ tests/nghttp2_hd_test.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/nghttp2_frame_test.c b/tests/nghttp2_frame_test.c index 6eefe085..b64d217a 100644 --- a/tests/nghttp2_frame_test.c +++ b/tests/nghttp2_frame_test.c @@ -410,6 +410,8 @@ void test_nghttp2_nv_array_copy(void) rv = nghttp2_nv_array_copy(&nva, &bignv, 1); CU_ASSERT(1 == rv); + nghttp2_nv_array_del(nva); + free(bignv.value); } diff --git a/tests/nghttp2_hd_test.c b/tests/nghttp2_hd_test.c index f2f35380..8a59742d 100644 --- a/tests/nghttp2_hd_test.c +++ b/tests/nghttp2_hd_test.c @@ -700,6 +700,8 @@ void test_nghttp2_hd_change_table_size(void) CU_ASSERT(1024 == inflater.ctx.hd_table_bufsize_max); CU_ASSERT(4096 == inflater.settings_hd_table_bufsize_max); + nva_out_reset(&out); + free(buf); nghttp2_hd_inflate_free(&inflater); nghttp2_hd_deflate_free(&deflater);