Fix compile error and memory leak
This commit is contained in:
parent
eec8870ac1
commit
6b28e033de
|
@ -6666,7 +6666,7 @@ void test_nghttp2_session_cancel_reserved_remote(void) {
|
||||||
nghttp2_hd_deflater deflater;
|
nghttp2_hd_deflater deflater;
|
||||||
nghttp2_mem *mem;
|
nghttp2_mem *mem;
|
||||||
nghttp2_bufs bufs;
|
nghttp2_bufs bufs;
|
||||||
int rv;
|
ssize_t rv;
|
||||||
|
|
||||||
mem = nghttp2_mem_default();
|
mem = nghttp2_mem_default();
|
||||||
frame_pack_bufs_init(&bufs);
|
frame_pack_bufs_init(&bufs);
|
||||||
|
@ -6736,7 +6736,9 @@ void test_nghttp2_session_cancel_reserved_remote(void) {
|
||||||
|
|
||||||
nghttp2_frame_headers_free(&frame.headers, mem);
|
nghttp2_frame_headers_free(&frame.headers, mem);
|
||||||
|
|
||||||
nghttp2_bufs_free(&bufs);
|
nghttp2_hd_deflate_free(&deflater);
|
||||||
|
|
||||||
nghttp2_session_del(session);
|
nghttp2_session_del(session);
|
||||||
|
|
||||||
|
nghttp2_bufs_free(&bufs);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue