Merge pull request #11540 from yang-g/unref_error

Unref existing error before setting a new one.
pull/11552/head
Yang Gao 8 years ago committed by GitHub
commit 045f9346ef
  1. 1
      src/core/ext/transport/chttp2/transport/chttp2_transport.c

@ -2726,6 +2726,7 @@ grpc_chttp2_incoming_byte_stream *grpc_chttp2_incoming_byte_stream_create(
gpr_ref_init(&incoming_byte_stream->refs, 2);
incoming_byte_stream->transport = t;
incoming_byte_stream->stream = s;
GRPC_ERROR_UNREF(s->byte_stream_error);
s->byte_stream_error = GRPC_ERROR_NONE;
return incoming_byte_stream;
}

Loading…
Cancel
Save