Tests: Fix memory leaks in test_index.
commitc44c7e7590db1b89c97e106f5c516bf69189e233
authorJia Tan <jiat0218@gmail.com>
Wed, 28 Jun 2023 12:46:31 +0000 (28 20:46 +0800)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 18 Jul 2023 10:26:48 +0000 (18 13:26 +0300)
tree2ef2a1bc8f40d8927d5510dff6a91c66f79f5a72
parentb9499c94fccc03eba5311b5305f04149a7c5af65
Tests: Fix memory leaks in test_index.

Several tests were missing calls to lzma_index_end() to clean up the
lzma_index structs. The memory leaks were discovered by using
-fsanitize=address with GCC.
tests/test_index.c