Merge pull request #12686 from muxi/fix-cancel-after-invoke

Fix memory leak in proxy.c
pull/12100/head
Muxi Yan 7 years ago committed by GitHub
commit 76c9e08063
  1. 4
      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); new_closure(on_p2s_sent_close, pc), NULL);
GPR_ASSERT(err == GRPC_CALL_OK); 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"); unrefpc(pc, "on_c2p_recv_msg");

Loading…
Cancel
Save