mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
liblzma: Remove an always-true condition from lzma_index_cat().
This should help static analysis tools to see that newg isn't leaked. Thanks to Pavel Raiskup.
This commit is contained in:
parent
65b4aba6d0
commit
273c33297b
1 changed files with 2 additions and 2 deletions
|
@ -825,7 +825,7 @@ lzma_index_cat(lzma_index *restrict dest, lzma_index *restrict src,
|
||||||
s->groups.root = &newg->node;
|
s->groups.root = &newg->node;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s->groups.rightmost == &g->node)
|
assert(s->groups.rightmost == &g->node);
|
||||||
s->groups.rightmost = &newg->node;
|
s->groups.rightmost = &newg->node;
|
||||||
|
|
||||||
lzma_free(g, allocator);
|
lzma_free(g, allocator);
|
||||||
|
|
Loading…
Reference in a new issue