Skip to content

Commit

Permalink
fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
markdroth committed Sep 3, 2024
1 parent a99bfbe commit 1a92f21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/xds/xds_client/xds_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ void XdsClient::XdsChannel::Orphaned() ABSL_NO_THREAD_SAFETY_ANALYSIS {
shutting_down_ = true;
if (failure_watcher_ != nullptr) {
transport_->StopConnectivityFailureWatch(failure_watcher_);
failure_watcher_.reset();
}
transport_.reset();
// At this time, all strong refs are removed, remove from channel map to
Expand Down

0 comments on commit 1a92f21

Please sign in to comment.