diff options
author | Craig Tiller <ctiller@google.com> | 2017-01-20 16:01:43 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-01-20 16:01:43 -0800 |
commit | 7fa7d6817ef99cdf75690b55962c44b40f09a700 (patch) | |
tree | 0b4bec2b166bec1a7e928087043ee11d95cf9655 /src/core/lib/slice | |
parent | 0cf6a71b7206ab7562c814bdd35a79fcfc9ec598 (diff) |
Fix core banned functions
Diffstat (limited to 'src/core/lib/slice')
-rw-r--r-- | src/core/lib/slice/slice_buffer.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/lib/slice/slice_buffer.c b/src/core/lib/slice/slice_buffer.c index b1bf0ceb23..9176dc8a42 100644 --- a/src/core/lib/slice/slice_buffer.c +++ b/src/core/lib/slice/slice_buffer.c @@ -282,7 +282,8 @@ void grpc_slice_buffer_move_first(grpc_slice_buffer *src, size_t n, GPR_ASSERT(src->count > 0); } -void grpc_slice_buffer_move_first_into_buffer(grpc_slice_buffer *src, size_t n, +void grpc_slice_buffer_move_first_into_buffer(grpc_exec_ctx *exec_ctx, + grpc_slice_buffer *src, size_t n, void *dst) { char *dstp = dst; GPR_ASSERT(src->length >= n); @@ -297,13 +298,13 @@ void grpc_slice_buffer_move_first_into_buffer(grpc_slice_buffer *src, size_t n, n = 0; } else if (slice_len == n) { memcpy(dstp, GRPC_SLICE_START_PTR(slice), n); - grpc_slice_unref(slice); + grpc_slice_unref_internal(exec_ctx, slice); n = 0; } else { memcpy(dstp, GRPC_SLICE_START_PTR(slice), slice_len); dstp += slice_len; n -= slice_len; - grpc_slice_unref(slice); + grpc_slice_unref_internal(exec_ctx, slice); } } } |