From 6b28e033de8603574588153aa7d931ef40d0f3d6 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 9 Feb 2015 22:37:11 +0900 Subject: [PATCH] Fix compile error and memory leak --- tests/nghttp2_session_test.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/nghttp2_session_test.c b/tests/nghttp2_session_test.c index e7d8239a..1eef0147 100644 --- a/tests/nghttp2_session_test.c +++ b/tests/nghttp2_session_test.c @@ -6666,7 +6666,7 @@ void test_nghttp2_session_cancel_reserved_remote(void) { nghttp2_hd_deflater deflater; nghttp2_mem *mem; nghttp2_bufs bufs; - int rv; + ssize_t rv; mem = nghttp2_mem_default(); 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_bufs_free(&bufs); + nghttp2_hd_deflate_free(&deflater); nghttp2_session_del(session); + + nghttp2_bufs_free(&bufs); }