tests: Fix leak

This commit is contained in:
Tatsuhiro Tsujikawa 2014-02-28 03:07:19 +09:00
parent a85455ed0b
commit 6f0b9128b4
2 changed files with 4 additions and 0 deletions

View File

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

View File

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