Re: [PATCH v2 06/14] commit-graph: implement git-commit-graph --read
- From
Stefan Beller <sbeller@google.com>
- Date
- Jan 31, 2018, 02:22 UTC
- Message-ID
- <CAGZ79kbt3+MLvw-UsigNq7mf7kxK3KhjJ-pEqFe1R03bNFMhKQ@mail.gmail.com>
- In-Reply-To
- <1517348383-112294-7-git-send-email-dstolee@microsoft.com>
Show 9 quoted lines
> +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.