Merge branch 'jc/unpack-trees-plug-leak'
* jc/unpack-trees-plug-leak: unpack_trees: plug leakage of o->result
This commit is contained in:
commit
c09988ad94
@ -1155,6 +1155,8 @@ int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options
|
||||
if (o->dst_index) {
|
||||
discard_index(o->dst_index);
|
||||
*o->dst_index = o->result;
|
||||
} else {
|
||||
discard_index(&o->result);
|
||||
}
|
||||
|
||||
done:
|
||||
|
Loading…
Reference in New Issue
Block a user