git/refs
Patrick Steinhardt b3e098d6e7 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>
2024-06-06 09:04:32 -07:00
..
debug.c Merge branch 'ps/refs-without-the-repository-updates' into ps/ref-storage-migration 2024-05-23 09:14:08 -07:00
files-backend.c refs/files: extract function to iterate through root refs 2024-06-06 09:04:32 -07:00
iterator.c refs: convert iteration over replace refs to accept ref store 2024-05-17 10:33:38 -07:00
packed-backend.c Merge branch 'ps/refs-without-the-repository-updates' into ps/ref-storage-migration 2024-05-23 09:14:08 -07:00
packed-backend.h refs: adjust names for init and init_db callbacks 2024-05-17 10:33:36 -07:00
ref-cache.c refs/files: fix NULL pointer deref when releasing ref store 2024-06-06 09:04:32 -07:00
ref-cache.h
refs-internal.h Merge branch 'ps/refs-without-the-repository-updates' into ps/ref-storage-migration 2024-05-23 09:14:08 -07:00
reftable-backend.c refs: allow to skip creation of reflog entries 2024-06-06 09:04:31 -07:00