diff options
author | Muxi Yan <mxyan@google.com> | 2017-09-21 15:43:32 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2017-09-21 15:43:32 -0700 |
commit | 9fa16599510ca4772ef0b2e3631f7eaa3b429695 (patch) | |
tree | 7363866675b8d3b62e1a444d1c2e647b09342040 /test/core | |
parent | a1f7f513a78c9223354ff92a57a723a08d2d82d2 (diff) |
Fix a memory leak point
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/end2end/fixtures/proxy.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/core/end2end/fixtures/proxy.c b/test/core/end2end/fixtures/proxy.c index 9ad862728f..6a2d75da09 100644 --- a/test/core/end2end/fixtures/proxy.c +++ b/test/core/end2end/fixtures/proxy.c @@ -227,6 +227,10 @@ static void on_c2p_recv_msg(void *arg, int success) { new_closure(on_p2s_sent_close, pc), NULL); GPR_ASSERT(err == GRPC_CALL_OK); } + } else { + if (pc->c2p_msg != NULL) { + grpc_byte_buffer_destroy(pc->c2p_msg); + } } unrefpc(pc, "on_c2p_recv_msg"); |