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>
This commit is contained in:
@ -852,6 +852,7 @@ static int find_copy_in_parent(struct scoreboard *sb,
|
|||||||
this, &file_p);
|
this, &file_p);
|
||||||
copy_split_if_better(sb, blame_list[j].split,
|
copy_split_if_better(sb, blame_list[j].split,
|
||||||
this);
|
this);
|
||||||
|
decref_split(this);
|
||||||
}
|
}
|
||||||
free(blob);
|
free(blob);
|
||||||
origin_decref(norigin);
|
origin_decref(norigin);
|
||||||
|
Reference in New Issue
Block a user