diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-08-14 14:54:56 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-08-14 14:54:57 -0700 |
| commit | 81903d04729f9402d0dae98caaba71f46dee5735 (patch) | |
| tree | 6209b3e8ecf28bbe92d64e66b42b132bd7e4489c /refs/files-backend.c | |
| parent | 7b11e20bfff8cd9e448290709070266ca9d0c74f (diff) | |
| parent | e2e373ba82d2cb19b60e91318626bda78eba7872 (diff) | |
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/files-backend.c')
| -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, |
