Skip to content

Commit

Permalink
Fix memory leak in resultset for 'group_replication_lag_action'
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierJF committed Feb 2, 2023
1 parent d220a42 commit cd56726
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/MySQL_HostGroups_Manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit cd56726

Please sign in to comment.