aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/slice
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-11-14 08:02:45 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-11-14 08:02:45 -0800
commit3cf79228ffcdd5c867b4067d6f6a5743a14d3ff1 (patch)
tree86778cc9c61666939677f67956a4f6539a79b6bf /src/core/lib/slice
parentd5a7a8a61eb3c1d5759f79c9cb4667a4d2df0d25 (diff)
Review feedback
Diffstat (limited to 'src/core/lib/slice')
-rw-r--r--src/core/lib/slice/slice_buffer.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/lib/slice/slice_buffer.c b/src/core/lib/slice/slice_buffer.c
index 872bd10a09..08eaf4963a 100644
--- a/src/core/lib/slice/slice_buffer.c
+++ b/src/core/lib/slice/slice_buffer.c
@@ -75,10 +75,7 @@ void grpc_slice_buffer_destroy_internal(grpc_exec_ctx *exec_ctx,
void grpc_slice_buffer_destroy(grpc_slice_buffer *sb) {
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT;
- grpc_slice_buffer_reset_and_unref_internal(&exec_ctx, sb);
- if (sb->slices != sb->inlined) {
- gpr_free(sb->slices);
- }
+ grpc_slice_buffer_destroy_internal(&exec_ctx, sb);
grpc_exec_ctx_finish(&exec_ctx);
}