aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-03-05 04:59:18 +0000
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-03-05 04:59:18 +0000
commit461be402a94903eab2d8947f91ec3f6e16a07d66 (patch)
treec76c055b597fef63c2c1d3d4f46770d83a6fae79 /src/core
parentcf667a095d5feab527b09e0197a3c24caf46ec6e (diff)
Fix ref counting
Diffstat (limited to 'src/core')
-rw-r--r--src/core/surface/call.c2
1 files changed, 2 insertions, 0 deletions
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);
}
}