]> git.ipfire.org Git - thirdparty/git.git/commit - blame.c
refactor various if (x) FREE_AND_NULL(x) to just FREE_AND_NULL(x)
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 17 Aug 2018 13:02:50 +0000 (13:02 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 Aug 2018 17:08:56 +0000 (10:08 -0700)
commitce528de023f82d767096b0342b6da8039feff7bc
tree53e85fcee37cfd8b2611c47915c3acbb53143d00
parent53f9a3e157dbbc901a02ac2c73346d375e24978c
refactor various if (x) FREE_AND_NULL(x) to just FREE_AND_NULL(x)

Change the few conditional uses of FREE_AND_NULL(x) to be
unconditional. As noted in the standard[1] free(NULL) is perfectly
valid, so we might as well leave this check up to the C library.

1. http://pubs.opengroup.org/onlinepubs/9699919799/functions/free.html

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
blame.c
branch.c
http.c
tree-diff.c