Merge pull request #11556 from yang-g/unref_error2

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

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

Loading…
Cancel
Save