From 95039b57dc812dff2c0edfd80f6c09179afabc97 Mon Sep 17 00:00:00 2001 From: "Mark D. Roth" Date: Fri, 24 Feb 2017 07:59:45 -0800 Subject: [PATCH] Fix refcounting bug. --- src/core/ext/client_channel/client_channel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/ext/client_channel/client_channel.c b/src/core/ext/client_channel/client_channel.c index 967709bf741..c2982004653 100644 --- a/src/core/ext/client_channel/client_channel.c +++ b/src/core/ext/client_channel/client_channel.c @@ -1082,7 +1082,8 @@ static void on_complete_locked(grpc_exec_ctx *exec_ctx, void *arg, &chand->retry_throttle_data); } } - grpc_closure_run(exec_ctx, calld->original_on_complete, error); + grpc_closure_run(exec_ctx, calld->original_on_complete, + GRPC_ERROR_REF(error)); } static void start_transport_stream_op_locked(grpc_exec_ctx *exec_ctx, void *arg,