aboutsummaryrefslogtreecommitdiff
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
parentTests: test_index_hash: Don't treat pointers as booleans. (diff)
downloadxz-d550304f5343b3a082da265107cd820e0d81dc71.tar.xz
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 9b7caade..063ec0f2 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
}