From 3693078650cb482a1de3927ca18c98266d110f81 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Mon, 4 Apr 2016 20:57:53 -0700 Subject: Add handy debug --- src/core/lib/transport/metadata.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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(); } -- cgit v1.2.3