mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
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 a new issue