Skip to content

Commit

Permalink
Merge branch 'mh/commit-reach-get-reachable-plug-leak'
Browse files Browse the repository at this point in the history
Plug memory leak.

* mh/commit-reach-get-reachable-plug-leak:
  commit-reach: fix memory leak in get_reachable_subset()
  • Loading branch information
gitster committed Jun 20, 2023
2 parents 7f9b5ff + 68b5117 commit 693bde4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commit-reach.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 693bde4

Please sign in to comment.