diff options
author | Alex Henrie <alexhenrie24@gmail.com> | 2022-02-11 17:36:24 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-11 19:06:40 +0100 |
commit | dccf6c16f1cee485f05ef42ba67a9309c358a78d (patch) | |
tree | 0bb9faa697992a532b8ce1f67ea4ff6d524414bd /graph.h | |
parent | The second batch for 2.36 (diff) | |
download | git-dccf6c16f1cee485f05ef42ba67a9309c358a78d.tar.xz git-dccf6c16f1cee485f05ef42ba67a9309c358a78d.zip |
log: fix memory leak if --graph is passed multiple times
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'graph.h')
-rw-r--r-- | graph.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -140,6 +140,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 * the next time graph_next_line() is called. |