mirror of
https://github.com/git/git
synced 2024-09-29 21:27:13 +00:00
refs/files: prevent memory leak by freeing packed_ref_store
This complements 64a6dd8ffc
(refs: implement removal of ref storages,
2024-06-06).
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Acked-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
25a0023f28
commit
e2e373ba82
|
@ -155,6 +155,7 @@ static void files_ref_store_release(struct ref_store *ref_store)
|
|||
free_ref_cache(refs->loose);
|
||||
free(refs->gitcommondir);
|
||||
ref_store_release(refs->packed_ref_store);
|
||||
free(refs->packed_ref_store);
|
||||
}
|
||||
|
||||
static void files_reflog_path(struct files_ref_store *refs,
|
||||
|
|
Loading…
Reference in a new issue