aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2018-04-04 14:05:53 -0700
committerGravatar Mark D. Roth <roth@google.com>2018-04-04 14:06:12 -0700
commit99dbd7a975704135b0b4d20c43c57c6af90b7485 (patch)
tree8cc7b079ceb917df415c55f7c968c580d6dcb702 /src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc
parent2b243bf3b08eb97d969e0dcf05ac0481e1935d83 (diff)
Fix error refcounting. Remove unnecessary check in PF.
Diffstat (limited to 'src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc')
-rw-r--r--src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc b/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc
index db093c8f53..555ae62aa2 100644
--- a/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc
+++ b/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc
@@ -600,6 +600,7 @@ void RoundRobin::RoundRobinSubchannelData::ProcessConnectivityChangeLocked(
StopConnectivityWatchLocked();
UnrefSubchannelLocked("rr_sl_shutdown");
subchannel_list()->UnrefForConnectivityWatch("rr_sl_shutdown");
+ GRPC_ERROR_UNREF(error);
return;
}
// Process the state change.
@@ -640,6 +641,7 @@ void RoundRobin::RoundRobinSubchannelData::ProcessConnectivityChangeLocked(
subchannel_list()->UpdateOverallStateLocked();
StartConnectivityWatchLocked();
}
+ GRPC_ERROR_UNREF(error);
}
grpc_connectivity_state RoundRobin::CheckConnectivityLocked(