diff options
author | Hope Casey-Allen <hcaseyal@google.com> | 2018-09-09 11:16:33 -0700 |
---|---|---|
committer | Hope Casey-Allen <hcaseyal@google.com> | 2018-09-09 11:16:33 -0700 |
commit | 898009822789f1932e81714b9c7f76f1cb48d037 (patch) | |
tree | bfa38dc38af8e5813b3d9d23540f67bb4bb9c89e /src/core/lib/transport | |
parent | 9e086516398e05952c9c1e86a09dc0feee036ed3 (diff) |
Fix memory leak in debugging function
Diffstat (limited to 'src/core/lib/transport')
-rw-r--r-- | src/core/lib/transport/transport_op_string.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/transport/transport_op_string.cc b/src/core/lib/transport/transport_op_string.cc index 9c362f669c..976e2b8f7d 100644 --- a/src/core/lib/transport/transport_op_string.cc +++ b/src/core/lib/transport/transport_op_string.cc @@ -51,7 +51,7 @@ static void put_metadata_list(gpr_strvec* b, grpc_metadata_batch md) { if (is_valid_mdelem_index(m->md_index)) { char* tmp; gpr_asprintf(&tmp, "index=%d", m->md_index); - gpr_strvec_add(b, gpr_strdup("index=")); + gpr_strvec_add(b, tmp); } else { put_metadata(b, m->md); } |