aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-04-04 20:57:53 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-04-04 20:57:53 -0700
commit3693078650cb482a1de3927ca18c98266d110f81 (patch)
treeba45e60b57ea9f9311571a1df37933bd8b531184 /src
parent9cac2a12d9e181d130841092e9d40fa3309d7aa7 (diff)
Add handy debug
Diffstat (limited to 'src')
-rw-r--r--src/core/lib/transport/metadata.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/lib/transport/metadata.c b/src/core/lib/transport/metadata.c
index 2b1d32d55e..3bf932d903 100644
--- a/src/core/lib/transport/metadata.c
+++ b/src/core/lib/transport/metadata.c
@@ -242,6 +242,11 @@ void grpc_mdctx_global_shutdown(void) {
if (shard->count != 0) {
gpr_log(GPR_DEBUG, "WARNING: %d metadata strings were leaked",
shard->count);
+ for (size_t j = 0; j < shard->capacity; j++) {
+ for (internal_string *s = shard->strs[j]; s; s = s->bucket_next) {
+ gpr_log(GPR_DEBUG, "LEAKED: %s", grpc_mdstr_as_c_string((grpc_mdstr*)s));
+ }
+ }
if (grpc_iomgr_abort_on_leaks()) {
abort();
}