tests: Fix leak
This commit is contained in:
parent
a85455ed0b
commit
6f0b9128b4
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue