Re: [PATCH v2 06/14] commit-graph: implement git-commit-graph --read
From: Stefan Beller <hidden>
Date: 2018-01-31 02:22:56
From: Stefan Beller <hidden>
Date: 2018-01-31 02:22:56
+static void free_commit_graph(struct commit_graph **g)
+{
+ if (!g || !*g)
+ return;
+
+ close_commit_graph(*g);
+
+ free(*g);
+ *g = NULL;nit: You may want to use FREE_AND_NULL(*g) instead.