diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2023-01-06 17:55:06 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2023-01-06 17:55:06 +0200 |
commit | d550304f5343b3a082da265107cd820e0d81dc71 (patch) | |
tree | c8eef21f2d372bcfeccae7eba4f7d31d6b67ed70 /tests/test_index_hash.c | |
parent | Tests: test_index_hash: Don't treat pointers as booleans. (diff) | |
download | xz-d550304f5343b3a082da265107cd820e0d81dc71.tar.xz |
Tests: test_index_hash: Fix a memory leak.
Diffstat (limited to 'tests/test_index_hash.c')
-rw-r--r-- | tests/test_index_hash.c | 2 |
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 } |