From e2e373ba82d2cb19b60e91318626bda78eba7872 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Mon, 5 Aug 2024 09:53:32 +0000 Subject: 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 Acked-by: Patrick Steinhardt Signed-off-by: Junio C Hamano --- refs/files-backend.c | 1 + 1 file changed, 1 insertion(+) (limited to 'refs') diff --git a/refs/files-backend.c b/refs/files-backend.c index e663781199..48f6717d9a 100644 --- a/refs/files-backend.c +++ b/refs/files-backend.c @@ -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, -- cgit v1.2.3