diff options
author | Sven Strickroth <email@cs-ware.de> | 2024-08-05 11:53:32 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-05 17:58:41 +0200 |
commit | e2e373ba82d2cb19b60e91318626bda78eba7872 (patch) | |
tree | 43b126e6eaf99344d48aa8b10af4bf6fe9b15bb9 /refs | |
parent | builtin/refs: new command to migrate ref storage formats (diff) | |
download | git-e2e373ba82d2cb19b60e91318626bda78eba7872.tar.xz git-e2e373ba82d2cb19b60e91318626bda78eba7872.zip |
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>
Diffstat (limited to 'refs')
-rw-r--r-- | refs/files-backend.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, |