From: Junio C Hamano Date: Mon, 30 Oct 2006 07:56:12 +0000 (-0800) Subject: git-pickaxe: refcount origin correctly in find_copy_in_parent() X-Git-Tag: v1.4.4-rc1~2^2~14 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f5f75c652b9c2347522159a87297820103e593e4;p=git.git git-pickaxe: refcount origin correctly in find_copy_in_parent() This makes "git-pickaxe -C master -- revision.c" to finish with proper refcounts for all origins. I am reasonably happy with it. Signed-off-by: Junio C Hamano --- diff --git a/builtin-pickaxe.c b/builtin-pickaxe.c index 200772c75..3e7277da2 100644 --- a/builtin-pickaxe.c +++ b/builtin-pickaxe.c @@ -852,6 +852,7 @@ static int find_copy_in_parent(struct scoreboard *sb, this, &file_p); copy_split_if_better(sb, blame_list[j].split, this); + decref_split(this); } free(blob); origin_decref(norigin);