aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-11-04 11:33:26 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-11-04 11:33:26 -0700
commitf81a5dca3dabd20be446f92642b1ae80ac0363e4 (patch)
treefdbda9b7a63ad5f4af530ebbae52be4b86308e96 /src/core
parent3b476d4d3e6db2bb418c6fc483a6fcbcd04f2040 (diff)
Release target once pinged
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ext/lb_policy/round_robin/round_robin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ext/lb_policy/round_robin/round_robin.c b/src/core/ext/lb_policy/round_robin/round_robin.c
index 427999aa6b..0fd3abe099 100644
--- a/src/core/ext/lb_policy/round_robin/round_robin.c
+++ b/src/core/ext/lb_policy/round_robin/round_robin.c
@@ -609,6 +609,7 @@ static void rr_ping_one(grpc_exec_ctx *exec_ctx, grpc_lb_policy *pol,
grpc_subchannel_get_connected_subchannel(selected->subchannel),
"picked");
grpc_connected_subchannel_ping(exec_ctx, target, closure);
+ GRPC_CONNECTED_SUBCHANNEL_UNREF(exec_ctx, target, "picked");
} else {
gpr_mu_unlock(&p->mu);
grpc_exec_ctx_sched(exec_ctx, closure,