]> git.ipfire.org Git - thirdparty/git.git/blobdiff - graph.h
log: fix memory leak if --graph is passed multiple times
[thirdparty/git.git] / graph.h
diff --git a/graph.h b/graph.h
index 8313e293c78d8e72fd02dbda94f28a4df80eee05..e88632a0140f70ef25535e23120c898c007b8349 100644 (file)
--- 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