Skip to content

Commit

Permalink
Merge pull request grpc#1778 from yang-g/test
Browse files Browse the repository at this point in the history
Unref the slices if no write will happen.
ctiller committed May 28, 2015
2 parents e396a3f + dbf8fdc commit 46a36d7
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/channel/client_channel.c
Original file line number Diff line number Diff line change
@@ -144,6 +144,7 @@ static void handle_op_after_cancellation(grpc_call_element *elem,
call_data *calld = elem->call_data;
channel_data *chand = elem->channel_data;
if (op->send_ops) {
grpc_stream_ops_unref_owned_objects(op->send_ops->ops, op->send_ops->nops);
op->on_done_send(op->send_user_data, 0);
}
if (op->recv_ops) {
1 change: 1 addition & 0 deletions src/core/surface/lame_client.c
Original file line number Diff line number Diff line change
@@ -55,6 +55,7 @@ static void lame_start_transport_op(grpc_call_element *elem,
channel_data *chand = elem->channel_data;
GRPC_CALL_LOG_OP(GPR_INFO, elem, op);
if (op->send_ops) {
grpc_stream_ops_unref_owned_objects(op->send_ops->ops, op->send_ops->nops);
op->on_done_send(op->send_user_data, 0);
}
if (op->recv_ops) {

0 comments on commit 46a36d7

Please sign in to comment.