Add handy debug

pull/6071/head
Craig Tiller 9 years ago
parent 9cac2a12d9
commit 3693078650
  1. 5
      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();
}

Loading…
Cancel
Save