Unref existing error before setting new one

pull/11556/head
yang-g 8 years ago
parent f62f9dc6f0
commit 4b65414d25
  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);
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