Merge branch 'ss/packed-ref-store-leakfix' into maint-2.46

Leakfix.

* ss/packed-ref-store-leakfix:
  refs/files: prevent memory leak by freeing packed_ref_store
maint
Junio C Hamano 2024-08-26 11:10:22 -07:00
commit 5d0870d68c
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ static void files_ref_store_release(struct ref_store *ref_store)
free_ref_cache(refs->loose); free_ref_cache(refs->loose);
free(refs->gitcommondir); free(refs->gitcommondir);
ref_store_release(refs->packed_ref_store); ref_store_release(refs->packed_ref_store);
free(refs->packed_ref_store);
} }


static void files_reflog_path(struct files_ref_store *refs, static void files_reflog_path(struct files_ref_store *refs,