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);