From c7f4041f6b8f4729f88d3bc888b2a4080ae51f72 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Wed, 13 May 2015 20:57:55 +0300 Subject: [PATCH] Tests: Fix a memory leak in test_bcj_exact_size. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to Cristian Rodríguez. --- tests/test_bcj_exact_size.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_bcj_exact_size.c b/tests/test_bcj_exact_size.c index cbd93405..4a11a9c6 100644 --- a/tests/test_bcj_exact_size.c +++ b/tests/test_bcj_exact_size.c @@ -65,6 +65,7 @@ decompress(void) if (ret == LZMA_STREAM_END) { expect(strm.total_in == compressed_size); expect(strm.total_out == sizeof(in)); + lzma_end(&strm); return; }