summaryrefslogtreecommitdiffstats
path: root/tree-diff.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-06-06 07:29:25 +0200
committerJunio C Hamano <gitster@pobox.com>2024-06-06 18:04:32 +0200
commitb3e098d6e77db87946c50c3517fbdeffe9168ca9 (patch)
treec70c3a2c9564f68502c5e7a2308f50846f900279 /tree-diff.c
parentrefs/files: extract function to iterate through root refs (diff)
downloadgit-b3e098d6e77db87946c50c3517fbdeffe9168ca9.tar.xz
git-b3e098d6e77db87946c50c3517fbdeffe9168ca9.zip
refs/files: fix NULL pointer deref when releasing ref store
The `free_ref_cache()` function is not `NULL` safe and will thus segfault when being passed such a pointer. This can easily happen when trying to release a partially initialized "files" ref store. Fix this. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree-diff.c')
0 files changed, 0 insertions, 0 deletions