projects
/
platform
/
upstream
/
xz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
919fbaf
)
Fix a memory leak in test_index.c.
author
Lasse Collin
<lasse.collin@tukaani.org>
Thu, 26 Nov 2009 08:10:36 +0000
(10:10 +0200)
committer
Lasse Collin
<lasse.collin@tukaani.org>
Thu, 26 Nov 2009 08:10:36 +0000
(10:10 +0200)
This was introduced in
bd13b04e202b6f495a68eb0766f97085b7c50a06
.
Thanks to Jim Meyering for noticing it.
tests/test_index.c
patch
|
blob
|
history
diff --git
a/tests/test_index.c
b/tests/test_index.c
index
b98b6c1
..
12fd76a
100644
(file)
--- a/
tests/test_index.c
+++ b/
tests/test_index.c
@@
-300,6
+300,8
@@
test_cat(void)
for (int i = SMALL_COUNT; i >= 0; --i)
expect(!lzma_index_read(a, &r) ^ (i == 0));
+ lzma_index_end(a, NULL);
+
// Big Indexes
a = create_big();
stream_size = lzma_index_stream_size(a);