|
|
@ -242,6 +242,11 @@ void grpc_mdctx_global_shutdown(void) { |
|
|
|
if (shard->count != 0) { |
|
|
|
if (shard->count != 0) { |
|
|
|
gpr_log(GPR_DEBUG, "WARNING: %d metadata strings were leaked", |
|
|
|
gpr_log(GPR_DEBUG, "WARNING: %d metadata strings were leaked", |
|
|
|
shard->count); |
|
|
|
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()) { |
|
|
|
if (grpc_iomgr_abort_on_leaks()) { |
|
|
|
abort(); |
|
|
|
abort(); |
|
|
|
} |
|
|
|
} |
|
|
|