From 461be402a94903eab2d8947f91ec3f6e16a07d66 Mon Sep 17 00:00:00 2001 From: Craig Tiller <craig.tiller@gmail.com> Date: Thu, 5 Mar 2015 04:59:18 +0000 Subject: [PATCH] Fix ref counting --- src/core/surface/call.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/surface/call.c b/src/core/surface/call.c index b2033f3dc0..cfce943794 100644 --- a/src/core/surface/call.c +++ b/src/core/surface/call.c @@ -375,6 +375,7 @@ static void unlock(grpc_call *call) { sizeof(completed_requests)); call->num_completed_requests = 0; call->completing = 1; + grpc_call_internal_ref(call); } if (!call->sending) { @@ -403,6 +404,7 @@ static void unlock(grpc_call *call) { lock(call); call->completing = 0; unlock(call); + grpc_call_internal_unref(call, 0); } } -- GitLab