Merge branch 'ss/packed-ref-store-leakfix'

Leakfix.

* ss/packed-ref-store-leakfix:
  refs/files: prevent memory leak by freeing packed_ref_store
This commit is contained in:
Junio C Hamano 2024-08-14 14:54:56 -07:00
commit 81903d0472

View file

@ -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,