Skip to content
Snippets Groups Projects
Commit 0aeede35 authored by yang-g's avatar yang-g
Browse files

Unref existing error before setting a new one.

parent 8399f92f
No related branches found
No related tags found
No related merge requests found
...@@ -2726,6 +2726,7 @@ grpc_chttp2_incoming_byte_stream *grpc_chttp2_incoming_byte_stream_create( ...@@ -2726,6 +2726,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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment