From: Stefan Beller Date: Wed, 31 Jan 2018 02:22:49 GMT Subject: Re: [PATCH v2 06/14] commit-graph: implement git-commit-graph --read Message-ID: In-Reply-To: <1517348383-112294-7-git-send-email-dstolee@microsoft.com> > +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.