summaryrefslogtreecommitdiffstats
path: root/read-cache.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-10-04 19:14:07 +0200
committerJunio C Hamano <gitster@pobox.com>2024-10-04 19:14:07 +0200
commitb4efdfe16555f989eb977f77142a0c60571be34b (patch)
treefc301952bb65f242a7d60df8c422e8c769a2cf1b /read-cache.c
parentMerge branch 'jc/doc-discarding-stalled-topics' (diff)
parentread-cache: free threaded memory pool (diff)
downloadgit-b4efdfe16555f989eb977f77142a0c60571be34b.tar.xz
git-b4efdfe16555f989eb977f77142a0c60571be34b.zip
Merge branch 'ds/read-cache-mempool-leakfix'
Leakfix. * ds/read-cache-mempool-leakfix: read-cache: free threaded memory pool
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/read-cache.c b/read-cache.c
index 764fdfec46..3c078afadb 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -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;
}