aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/resource_quota.cc
diff options
context:
space:
mode:
authorGravatar hcaseyal <hcaseyal@gmail.com>2019-01-02 08:09:00 -0800
committerGravatar GitHub <noreply@github.com>2019-01-02 08:09:00 -0800
commit1fd5d2df85b14a98a86f97169ed1de523ae4a12c (patch)
treecb36dbed7b9eb1b92f35c4fd33111a5daf20702a /src/core/lib/iomgr/resource_quota.cc
parenta76465c65cca37dbb85adc7d97c5d4af367bef0f (diff)
parent5ac6ab67e4278b977dde50891f6aed6cb0e9e078 (diff)
Merge pull request #17586 from vertextao/fix-free-active-critical-section
* Fixed issue(17563) "Freeing heap block containing an active critical section."
Diffstat (limited to 'src/core/lib/iomgr/resource_quota.cc')
-rw-r--r--src/core/lib/iomgr/resource_quota.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/resource_quota.cc b/src/core/lib/iomgr/resource_quota.cc
index 7e4b3c9b2f..61c366098e 100644
--- a/src/core/lib/iomgr/resource_quota.cc
+++ b/src/core/lib/iomgr/resource_quota.cc
@@ -665,6 +665,7 @@ void grpc_resource_quota_unref_internal(grpc_resource_quota* resource_quota) {
GPR_ASSERT(resource_quota->num_threads_allocated == 0);
GRPC_COMBINER_UNREF(resource_quota->combiner, "resource_quota");
gpr_free(resource_quota->name);
+ gpr_mu_destroy(&resource_quota->thread_count_mu);
gpr_free(resource_quota);
}
}