Re: [PATCH v2 06/14] commit-graph: implement git-commit-graph --read

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +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.



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux