mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Fix a memory leak in test_index.c.
This was introduced in
bd13b04e20
.
Thanks to Jim Meyering for noticing it.
This commit is contained in:
parent
919fbaff86
commit
8767b41534
1 changed files with 2 additions and 0 deletions
|
@ -300,6 +300,8 @@ test_cat(void)
|
||||||
for (int i = SMALL_COUNT; i >= 0; --i)
|
for (int i = SMALL_COUNT; i >= 0; --i)
|
||||||
expect(!lzma_index_read(a, &r) ^ (i == 0));
|
expect(!lzma_index_read(a, &r) ^ (i == 0));
|
||||||
|
|
||||||
|
lzma_index_end(a, NULL);
|
||||||
|
|
||||||
// Big Indexes
|
// Big Indexes
|
||||||
a = create_big();
|
a = create_big();
|
||||||
stream_size = lzma_index_stream_size(a);
|
stream_size = lzma_index_stream_size(a);
|
||||||
|
|
Loading…
Reference in a new issue