diff --git a/lib/MySQL_HostGroups_Manager.cpp b/lib/MySQL_HostGroups_Manager.cpp index a1ce67237..523f083e8 100644 --- a/lib/MySQL_HostGroups_Manager.cpp +++ b/lib/MySQL_HostGroups_Manager.cpp @@ -3548,6 +3548,11 @@ void MySQL_HostGroups_Manager::group_replication_lag_action( } } + if (rhid_res != nullptr) { + delete rhid_res; + rhid_res = nullptr; + } + __exit_replication_lag_action: wrunlock();