]> git.ipfire.org Git - thirdparty/git.git/commit
reftable: all xxx_free() functions accept NULL arguments
authorHan-Wen Nienhuys <hanwen@google.com>
Thu, 20 Jan 2022 15:12:06 +0000 (15:12 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Jan 2022 19:31:52 +0000 (11:31 -0800)
commit33e922432016f614327bcf5624c084b7c02fe9c3
tree790704f2146d071dd15929d545da7f5c40fea2f6
parentb20aab501788a076b7118946afac4a460bf19d68
reftable: all xxx_free() functions accept NULL arguments

This fixes NULL derefs in error paths. Spotted by Coverity.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/reader.c
reftable/writer.c