aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2017-04-10 19:28:34 -0700
committerGravatar Muxi Yan <mxyan@google.com>2017-04-10 19:28:34 -0700
commit9396914c1430e9974e5315065d93eb634302fa06 (patch)
tree0c93982d7c25a7f470257ec6b621b2335b4be2bd
parent2c01070bc3119d1f5e0dce33b72928fb87a55505 (diff)
Work with error refs
-rw-r--r--src/core/ext/transport/chttp2/transport/chttp2_transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.c b/src/core/ext/transport/chttp2/transport/chttp2_transport.c
index 0002253dfe..1e9a460628 100644
--- a/src/core/ext/transport/chttp2/transport/chttp2_transport.c
+++ b/src/core/ext/transport/chttp2/transport/chttp2_transport.c
@@ -1671,7 +1671,6 @@ void grpc_chttp2_maybe_complete_recv_message(grpc_exec_ctx *exec_ctx,
&s->frame_storage);
grpc_slice_buffer_reset_and_unref_internal(
exec_ctx, &s->unprocessed_incoming_frames_buffer);
- GRPC_ERROR_UNREF(error);
break;
} else if (*s->recv_message != NULL) {
break;
@@ -1684,6 +1683,7 @@ void grpc_chttp2_maybe_complete_recv_message(grpc_exec_ctx *exec_ctx,
*s->recv_message = NULL;
null_then_run_closure(exec_ctx, &s->recv_message_ready, GRPC_ERROR_NONE);
}
+ GRPC_ERROR_UNREF(error);
}
}