aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/transport
diff options
context:
space:
mode:
authorGravatar Hope Casey-Allen <hcaseyal@google.com>2018-09-09 14:06:04 -0700
committerGravatar Hope Casey-Allen <hcaseyal@google.com>2018-09-09 14:06:04 -0700
commit23f0ab38fb6f09dcbf9371e6d681515e36df85a1 (patch)
tree059521c0c8a102aedee8188aaf978964a4884075 /src/core/lib/transport
parent98a70770ac6e5d1b4f3f753d69eee3b91c53f32c (diff)
Temporary workaround for memory leak in debugging function
Diffstat (limited to 'src/core/lib/transport')
-rw-r--r--src/core/lib/transport/transport_op_string.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/lib/transport/transport_op_string.cc b/src/core/lib/transport/transport_op_string.cc
index 976e2b8f7d..7771b4d220 100644
--- a/src/core/lib/transport/transport_op_string.cc
+++ b/src/core/lib/transport/transport_op_string.cc
@@ -49,9 +49,8 @@ static void put_metadata_list(gpr_strvec* b, grpc_metadata_batch md) {
for (m = md.list.head; m != nullptr; m = m->next) {
if (m != md.list.head) gpr_strvec_add(b, gpr_strdup(", "));
if (is_valid_mdelem_index(m->md_index)) {
- char* tmp;
- gpr_asprintf(&tmp, "index=%d", m->md_index);
- gpr_strvec_add(b, tmp);
+ // TODO(hcaseyal): print out the mdelem index
+ gpr_strvec_add(b, gpr_strdup("indexed mdelem"));
} else {
put_metadata(b, m->md);
}