aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2015-05-13 20:57:55 +0300
committerLasse Collin <lasse.collin@tukaani.org>2015-05-13 21:36:19 +0300
commit960440f3230dc628f6966d9f7614fc1b28baf44e (patch)
treeda041de450c73a86cbec7888e270b4e5b459a29b /tests
parentFix NEWS about threading in 5.2.0. (diff)
downloadxz-960440f3230dc628f6966d9f7614fc1b28baf44e.tar.xz
Tests: Fix a memory leak in test_bcj_exact_size.
Thanks to Cristian Rodríguez.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_bcj_exact_size.c1
1 files changed, 1 insertions, 0 deletions
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;
}