diff options
author | yang-g <yangg@google.com> | 2017-06-19 14:30:14 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2017-06-19 14:30:14 -0700 |
commit | 0aeede35a59ac1c996bb62bb55a29d0d7d7777ee (patch) | |
tree | a44566642884c60142a71d39c45aaae819fd7d96 /src/core/ext/transport | |
parent | 8399f92fd644c263df041d3809380944276f4274 (diff) |
Unref existing error before setting a new one.
Diffstat (limited to 'src/core/ext/transport')
-rw-r--r-- | src/core/ext/transport/chttp2/transport/chttp2_transport.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.c b/src/core/ext/transport/chttp2/transport/chttp2_transport.c index 0ad63d1af2..0211169c00 100644 --- a/src/core/ext/transport/chttp2/transport/chttp2_transport.c +++ b/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; } |