From fbb6b92ea265b6abf3fbb6770a2c0807c25a77a7 Mon Sep 17 00:00:00 2001
From: David Garcia Quintas <dgq@google.com>
Date: Fri, 23 Oct 2015 13:46:26 -0700
Subject: [PATCH] Fixed an inexplicable wrong handling of a lock

---
 src/core/channel/client_uchannel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/channel/client_uchannel.c b/src/core/channel/client_uchannel.c
index fee0c54e89..510677a844 100644
--- a/src/core/channel/client_uchannel.c
+++ b/src/core/channel/client_uchannel.c
@@ -462,7 +462,7 @@ static void cuc_destroy_channel_elem(grpc_exec_ctx *exec_ctx,
   grpc_subchannel_state_change_unsubscribe(exec_ctx, chand->subchannel,
                                            &chand->connectivity_cb);
   grpc_connectivity_state_destroy(exec_ctx, &chand->state_tracker);
-  gpr_mu_lock(&chand->mu_state);
+  gpr_mu_destroy(&chand->mu_state);
 }
 
 const grpc_channel_filter grpc_client_uchannel_filter = {
-- 
GitLab