diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-08-14 23:54:56 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-14 23:54:57 +0200 |
commit | 81903d04729f9402d0dae98caaba71f46dee5735 (patch) | |
tree | 6209b3e8ecf28bbe92d64e66b42b132bd7e4489c /refs | |
parent | Merge branch 'cp/unit-test-reftable-tree' (diff) | |
parent | refs/files: prevent memory leak by freeing packed_ref_store (diff) | |
download | git-81903d04729f9402d0dae98caaba71f46dee5735.tar.xz git-81903d04729f9402d0dae98caaba71f46dee5735.zip |
Merge branch 'ss/packed-ref-store-leakfix'
Leakfix.
* ss/packed-ref-store-leakfix:
refs/files: prevent memory leak by freeing packed_ref_store
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 c73f95ecf2..6380dff443 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, |