From d550304f5343b3a082da265107cd820e0d81dc71 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Fri, 6 Jan 2023 17:55:06 +0200 Subject: [PATCH] Tests: test_index_hash: Fix a memory leak. --- tests/test_index_hash.c | 2 ++ 1 file changed, 2 insertions(+) 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 }