From 1a92f21cf7fc8bff84a50d7fbf03a9c7f50ce887 Mon Sep 17 00:00:00 2001 From: "Mark D. Roth" Date: Tue, 3 Sep 2024 17:49:56 +0000 Subject: [PATCH] fix memory leak --- src/core/xds/xds_client/xds_client.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/xds/xds_client/xds_client.cc b/src/core/xds/xds_client/xds_client.cc index 15546d9045e3c..ad9d7d714ea70 100644 --- a/src/core/xds/xds_client/xds_client.cc +++ b/src/core/xds/xds_client/xds_client.cc @@ -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