aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-07-05 14:59:53 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-07-05 14:59:53 -0700
commit9c070bfb6495bd7763c9f5a8ae4ac095b29ecac0 (patch)
treeab97744fab9998d95e6eec545888972ac949ae16 /src
parent569401924dcb403f2339f452413ccc169d0f6fc5 (diff)
Fix memory leak
Diffstat (limited to 'src')
-rw-r--r--src/core/lib/surface/completion_queue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lib/surface/completion_queue.c b/src/core/lib/surface/completion_queue.c
index 8067b1000d..14e55eda85 100644
--- a/src/core/lib/surface/completion_queue.c
+++ b/src/core/lib/surface/completion_queue.c
@@ -946,6 +946,7 @@ static void cq_shutdown_next(grpc_exec_ctx *exec_ctx,
gpr_mu_lock(cq->mu);
if (cqd->shutdown_called) {
gpr_mu_unlock(cq->mu);
+ GRPC_CQ_INTERNAL_UNREF(exec_ctx, cq, "shutting_down");
GPR_TIMER_END("grpc_completion_queue_shutdown", 0);
return;
}