From dccf6c16f1cee485f05ef42ba67a9309c358a78d Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Fri, 11 Feb 2022 09:36:24 -0700 Subject: log: fix memory leak if --graph is passed multiple times Signed-off-by: Alex Henrie Signed-off-by: Junio C Hamano --- graph.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'graph.h') diff --git a/graph.h b/graph.h index 8313e293c7..e88632a014 100644 --- a/graph.h +++ b/graph.h @@ -139,6 +139,11 @@ void graph_set_column_colors(const char **colors, unsigned short colors_max); */ struct git_graph *graph_init(struct rev_info *opt); +/* + * Free a struct git_graph. + */ +void graph_clear(struct git_graph *graph); + /* * Update a git_graph with a new commit. * This will cause the graph to begin outputting lines for the new commit -- cgit v1.3-5-g9baa