Merge branch 'ds/read-cache-mempool-leakfix'

Leakfix.

* ds/read-cache-mempool-leakfix:
  read-cache: free threaded memory pool
This commit is contained in:
Junio C Hamano 2024-10-04 10:14:07 -07:00
commit b4efdfe165

View File

@ -2188,6 +2188,7 @@ static unsigned long load_cache_entries_threaded(struct index_state *istate, con
if (err)
die(_("unable to join load_cache_entries thread: %s"), strerror(err));
mem_pool_combine(istate->ce_mem_pool, p->ce_mem_pool);
free(p->ce_mem_pool);
consumed += p->consumed;
}