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 <junkio@cox.net>
Junio C Hamano committed
Oct 29, 2006 at 23:56 UTC
f5f75c652b9c2347522159a87297820103e593e4
1 file changed
+1
builtin-pickaxe.c
+1
@@ -852,6 +852,7 @@ static int find_copy_in_parent(struct scoreboard *sb,
852
this, &file_p);
853
copy_split_if_better(sb, blame_list[j].split,
854
this);
855
+ decref_split(this);
856
}
857
free(blob);
858
origin_decref(norigin);