Skip to content

Commit

Permalink
Merge pull request grpc#17586 from vertextao/fix-free-active-critical…
Browse files Browse the repository at this point in the history
…-section

* Fixed issue(17563) "Freeing heap block containing an active critical section."
  • Loading branch information
hcaseyal authored Jan 2, 2019
2 parents a76465c + 5ac6ab6 commit 1fd5d2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/lib/iomgr/resource_quota.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/core/lib/transport/metadata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ static void gc_mdtab(mdtab_shard* shard) {
((destroy_user_data_func)gpr_atm_no_barrier_load(
&md->destroy_user_data))(user_data);
}
gpr_mu_destroy(&md->mu_user_data);
gpr_free(md);
*prev_next = next;
num_freed++;
Expand Down

0 comments on commit 1fd5d2d

Please sign in to comment.