Fix use-after-free in lame client test

pull/1369/head
Craig Tiller 10 years ago
parent 64bc3fdaaa
commit b56ca8d555
  1. 4
      src/core/surface/call.c

@ -343,12 +343,12 @@ static void destroy_call(void *call, int ignored_success) {
for (i = 0; i < c->send_initial_metadata_count; i++) {
grpc_mdelem_unref(c->send_initial_metadata[i].md);
}
grpc_sopb_destroy(&c->send_ops);
grpc_sopb_destroy(&c->recv_ops);
if (c->legacy_state) {
destroy_legacy_state(c->legacy_state);
}
grpc_bbq_destroy(&c->incoming_queue);
grpc_sopb_destroy(&c->send_ops);
grpc_sopb_destroy(&c->recv_ops);
gpr_slice_buffer_destroy(&c->incoming_message);
gpr_free(c);
}

Loading…
Cancel
Save