summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-01-06 17:55:06 +0200
committerLasse Collin <lasse.collin@tukaani.org>2023-01-06 17:55:06 +0200
commitd550304f5343b3a082da265107cd820e0d81dc71 (patch)
treec8eef21f2d372bcfeccae7eba4f7d31d6b67ed70 /tests
parent02608f74ea1f2d2d56585711ff241c34b4ad0937 (diff)
downloadxz-d550304f5343b3a082da265107cd820e0d81dc71.tar.gz
Tests: test_index_hash: Fix a memory leak.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_index_hash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_index_hash.c b/tests/test_index_hash.c
index 9b7caad..063ec0f 100644
--- a/tests/test_index_hash.c
+++ b/tests/test_index_hash.c
@@ -367,6 +367,8 @@ test_lzma_index_hash_size(void)
// Total - 16 bytes
expected_size = 16;
assert_uint_eq(lzma_index_hash_size(index_hash), expected_size);
+
+ lzma_index_hash_end(index_hash, NULL);
#endif
}