diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-03-05 04:59:18 +0000 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-03-05 04:59:18 +0000 |
commit | 461be402a94903eab2d8947f91ec3f6e16a07d66 (patch) | |
tree | c76c055b597fef63c2c1d3d4f46770d83a6fae79 /src/core | |
parent | cf667a095d5feab527b09e0197a3c24caf46ec6e (diff) |
Fix ref counting
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/surface/call.c | 2 |
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); } } |