diff options
author | Ken Payson <kpayson@google.com> | 2017-08-29 09:21:22 -0700 |
---|---|---|
committer | Ken Payson <kpayson@google.com> | 2017-08-29 09:21:22 -0700 |
commit | 567e0f1eb62f361f845d5aba7f7b502e98d5b9d6 (patch) | |
tree | 020012b5785b113e70c994dec1cf7ca0937a3bc2 /src/core | |
parent | 2921e1ea7dbf423c3d17eea89363b63ae1adacae (diff) |
Have write ops take ownership over slices
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lib/transport/byte_stream.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lib/transport/byte_stream.c b/src/core/lib/transport/byte_stream.c index fb03a10315..08f61629a9 100644 --- a/src/core/lib/transport/byte_stream.c +++ b/src/core/lib/transport/byte_stream.c @@ -85,6 +85,7 @@ static void slice_buffer_stream_shutdown(grpc_exec_ctx *exec_ctx, static void slice_buffer_stream_destroy(grpc_exec_ctx *exec_ctx, grpc_byte_stream *byte_stream) { grpc_slice_buffer_stream *stream = (grpc_slice_buffer_stream *)byte_stream; + grpc_slice_buffer_reset_and_unref_internal(exec_ctx, stream->backing_buffer); GRPC_ERROR_UNREF(stream->shutdown_error); } |