diff options
author | Yang Gao <yangg@google.com> | 2017-06-20 09:58:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-20 09:58:20 -0700 |
commit | 045f9346ef4463a2fd4fa129113c83b80a2af701 (patch) | |
tree | 8c7fdd25227d5457cc444662a788979351f69712 /src | |
parent | d8847b99b340e030633b6db06a57846f926aaf8b (diff) | |
parent | 0aeede35a59ac1c996bb62bb55a29d0d7d7777ee (diff) |
Merge pull request #11540 from yang-g/unref_error
Unref existing error before setting a new one.
Diffstat (limited to 'src')
-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; } |