diff --git a/revision.c b/revision.c index 21f5f572c22ec7..f60c556490020b 100644 --- a/revision.c +++ b/revision.c @@ -4249,6 +4249,7 @@ static struct commit *get_revision_internal(struct rev_info *revs) c = get_revision_1(revs); if (!c) break; + free_commit_buffer(revs->repo->parsed_objects, c); } }