Fix refcounting bug

pull/6897/head
Craig Tiller 9 years ago
parent 25dc53915b
commit 06a5dc4d5d
  1. 2
      src/core/ext/transport/chttp2/transport/chttp2_transport.c

@ -1589,7 +1589,7 @@ static void parsing_action(grpc_exec_ctx *exec_ctx, void *arg,
grpc_chttp2_transport *t = arg; grpc_chttp2_transport *t = arg;
GPR_TIMER_BEGIN("reading_action.parse", 0); GPR_TIMER_BEGIN("reading_action.parse", 0);
size_t i = 0; size_t i = 0;
grpc_error *errors[2] = {error, GRPC_ERROR_NONE}; grpc_error *errors[2] = {GRPC_ERROR_REF(error), GRPC_ERROR_NONE};
for (; i < t->read_buffer.count && errors[1] == GRPC_ERROR_NONE; i++) { for (; i < t->read_buffer.count && errors[1] == GRPC_ERROR_NONE; i++) {
errors[1] = grpc_chttp2_perform_read(exec_ctx, &t->parsing, errors[1] = grpc_chttp2_perform_read(exec_ctx, &t->parsing,
t->read_buffer.slices[i]); t->read_buffer.slices[i]);

Loading…
Cancel
Save