Skip to content

Commit

Permalink
Merge branch 'jc/unpack-trees-plug-leak'
Browse files Browse the repository at this point in the history
* jc/unpack-trees-plug-leak:
  unpack_trees: plug leakage of o->result
  • Loading branch information
Junio C Hamano committed Dec 12, 2014
2 parents c18b867 + a16cc8b commit c09988a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unpack-trees.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c09988a

Please sign in to comment.