Skip to content

Commit

Permalink
Merge pull request #4102 from sysown/v2.x-gr_mon_mem_leak
Browse files Browse the repository at this point in the history
Fix memory leak in resultset for 'group_replication_lag_action'
  • Loading branch information
renecannao authored Feb 10, 2023
2 parents 7231055 + cd56726 commit 18b1b85
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 18b1b85

Please sign in to comment.