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
76762ae609
commit
3cbcaeb07e
|
@ -825,8 +825,8 @@ lzma_index_cat(lzma_index *restrict dest, lzma_index *restrict src,
|
|||
s->groups.root = &newg->node;
|
||||
}
|
||||
|
||||
if (s->groups.rightmost == &g->node)
|
||||
s->groups.rightmost = &newg->node;
|
||||
assert(s->groups.rightmost == &g->node);
|
||||
s->groups.rightmost = &newg->node;
|
||||
|
||||
lzma_free(g, allocator);
|
||||
|
||||
|
|
Loading…
Reference in New Issue