1
0
mirror of https://github.com/git/git.git synced 2024-09-28 17:22:20 +02:00

Merge branch 'mh/commit-reach-get-reachable-plug-leak'

Plug memory leak.

* mh/commit-reach-get-reachable-plug-leak:
  commit-reach: fix memory leak in get_reachable_subset()
This commit is contained in:
Junio C Hamano 2023-06-20 15:53:11 -07:00
commit 693bde461c

@ -944,6 +944,8 @@ struct commit_list *get_reachable_subset(struct commit **from, int nr_from,
}
}
clear_prio_queue(&queue);
clear_commit_marks_many(nr_to, to, PARENT1);
clear_commit_marks_many(nr_from, from, PARENT2);