diff options
author | David Garcia Quintas <dgq@google.com> | 2016-05-16 18:41:45 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2016-05-16 18:41:45 -0700 |
commit | bb76c33a0c2c3871b04f651c38108f4895f4a772 (patch) | |
tree | 5e56a57f498743874d322683a4f7d836cd7e9706 | |
parent | 1ba1bba66a18b6b7986a1cfa52c6f1ac4a14a029 (diff) |
Fixes leak in test_cancel_after_client_done & cancel_after_accept
-rw-r--r-- | test/core/end2end/fixtures/proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/end2end/fixtures/proxy.c b/test/core/end2end/fixtures/proxy.c index f6e01ec41c..196e481302 100644 --- a/test/core/end2end/fixtures/proxy.c +++ b/test/core/end2end/fixtures/proxy.c @@ -253,7 +253,6 @@ 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; @@ -284,6 +283,7 @@ static void on_p2s_recv_msg(void *arg, int success) { GPR_ASSERT(err == GRPC_CALL_OK); } unrefpc(pc, "on_p2s_recv_msg"); + grpc_byte_buffer_destroy(pc->p2s_msg); } static void on_c2p_sent_status(void *arg, int success) { |