summaryrefslogtreecommitdiff
path: root/builtin/count-objects.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 09:04:32 -0700
commitb3e098d6e77db87946c50c3517fbdeffe9168ca9 (patch)
treec70c3a2c9564f68502c5e7a2308f50846f900279 /builtin/count-objects.c
parent120b67172f7858a70b36941fa31af58a0534020e (diff)
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 'builtin/count-objects.c')
0 files changed, 0 insertions, 0 deletions