From 770d304d9cc28aa0cf3e864586f411d3f9843dfb Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Mon, 29 Nov 2021 21:25:12 -0800 Subject: [PATCH] Fix memory leak in memory tracking code (#28222) --- src/core/lib/resource_quota/memory_quota.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/lib/resource_quota/memory_quota.cc b/src/core/lib/resource_quota/memory_quota.cc index e651324433c..4c00d15eaba 100644 --- a/src/core/lib/resource_quota/memory_quota.cc +++ b/src/core/lib/resource_quota/memory_quota.cc @@ -80,6 +80,7 @@ ReclamationFunction ReclaimerQueue::Cancel( Entry& entry = entries_[index]; if (entry.allocator.get() != allocator) return {}; entry.allocator.reset(); + free_entries_.push_back(index); return std::move(entry.reclaimer); }