From 970781bba9982e66c70e012fce1ba08fb8b88da8 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Sun, 8 Feb 2015 14:38:31 -0800 Subject: [PATCH] Add missing unlock --- src/core/surface/call.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/surface/call.c b/src/core/surface/call.c index 0af524cead7..6a21c439b2d 100644 --- a/src/core/surface/call.c +++ b/src/core/surface/call.c @@ -1116,7 +1116,10 @@ grpc_call_error grpc_call_server_accept_old(grpc_call *call, ls = get_legacy_state(call); err = bind_cq(call, cq); - if (err != GRPC_CALL_OK) return err; + if (err != GRPC_CALL_OK) { + unlock(call); + return err; + } ls->finished_tag = finished_tag;