aboutsummaryrefslogtreecommitdiff
path: root/tests/test_index.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-11-26 10:10:36 +0200
committerLasse Collin <lasse.collin@tukaani.org>2009-11-26 10:10:36 +0200
commit8767b41534eafdf5e742e12190646bf5740b0cdb (patch)
treeffc252176590a94681939cfc2f6877b5f49fbc5b /tests/test_index.c
parentAdd missing error check to coder.c. (diff)
downloadxz-8767b41534eafdf5e742e12190646bf5740b0cdb.tar.xz
Fix a memory leak in test_index.c.
This was introduced in bd13b04e202b6f495a68eb0766f97085b7c50a06. Thanks to Jim Meyering for noticing it.
Diffstat (limited to 'tests/test_index.c')
-rw-r--r--tests/test_index.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_index.c b/tests/test_index.c
index b98b6c16..12fd76a8 100644
--- a/tests/test_index.c
+++ b/tests/test_index.c
@@ -300,6 +300,8 @@ test_cat(void)
for (int i = SMALL_COUNT; i >= 0; --i)
expect(!lzma_index_read(a, &r) ^ (i == 0));
+ lzma_index_end(a, NULL);
+
// Big Indexes
a = create_big();
stream_size = lzma_index_stream_size(a);