From f5f75c652b9c2347522159a87297820103e593e4 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 29 Oct 2006 23:56:12 -0800 Subject: [PATCH] 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 --- builtin-pickaxe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin-pickaxe.c b/builtin-pickaxe.c index 200772c75a..3e7277da21 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); -- 2.11.4.GIT