diff options
author | David Garcia Quintas <dgq@google.com> | 2016-05-20 10:07:23 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2016-05-20 10:07:23 -0700 |
commit | 3c4fe1bcb746955428c8ad78b8875fd5de3733dd (patch) | |
tree | 75706654391112801fd26bc0f794a55f96736fc2 /test/core | |
parent | bb76c33a0c2c3871b04f651c38108f4895f4a772 (diff) |
Fixed the fix
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/end2end/fixtures/proxy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/core/end2end/fixtures/proxy.c b/test/core/end2end/fixtures/proxy.c index 196e481302..7f10649fa6 100644 --- a/test/core/end2end/fixtures/proxy.c +++ b/test/core/end2end/fixtures/proxy.c @@ -253,6 +253,7 @@ static void on_c2p_sent_message(void *arg, int success) { grpc_op op; grpc_call_error err; + grpc_byte_buffer_destroy(pc->p2s_msg); if (!pc->proxy->shutdown && success) { op.op = GRPC_OP_RECV_MESSAGE; op.flags = 0; @@ -281,9 +282,10 @@ static void on_p2s_recv_msg(void *arg, int success) { err = grpc_call_start_batch(pc->c2p, &op, 1, new_closure(on_c2p_sent_message, pc), NULL); GPR_ASSERT(err == GRPC_CALL_OK); + } else { + grpc_byte_buffer_destroy(pc->p2s_msg); } unrefpc(pc, "on_p2s_recv_msg"); - grpc_byte_buffer_destroy(pc->p2s_msg); } static void on_c2p_sent_status(void *arg, int success) { |