]> git.ipfire.org Git - thirdparty/git.git/commit - unpack-trees.c
unpack_trees: plug leakage of o->result
authorJunio C Hamano <gitster@pobox.com>
Mon, 17 Nov 2014 20:12:41 +0000 (12:12 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Nov 2014 21:34:07 +0000 (13:34 -0800)
commita16cc8b24710b7426468ac0dc3194170e6113385
treea5349265d564945232362b38053fc17444139692
parenteeff891ac756fd97a05476446f15269b714ce4cc
unpack_trees: plug leakage of o->result

Most of the time the caller specifies to which destination variable
the resulting index_state should be assigned by passing a non-NULL
pointer in o->dst_index to receive that state, but for a caller that
gives a NULL o->dst_index, the resulting index simply leaked.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
unpack-trees.c