From 23752ac70385ae0c5955ec965e8b8eda4e322f00 Mon Sep 17 00:00:00 2001 From: Valentin Rakush Date: Thu, 7 Nov 2019 21:05:27 +0000 Subject: [PATCH] Fix memory leak in HGM mysql_servers generation --- lib/MySQL_HostGroups_Manager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/MySQL_HostGroups_Manager.cpp b/lib/MySQL_HostGroups_Manager.cpp index 8ce2e2e5a..fb26410df 100644 --- a/lib/MySQL_HostGroups_Manager.cpp +++ b/lib/MySQL_HostGroups_Manager.cpp @@ -1873,6 +1873,7 @@ void MySQL_HostGroups_Manager::generate_mysql_servers_table(int *_onlyhg) { } if (resultset) { delete resultset; resultset=NULL; } } + delete lst; } void MySQL_HostGroups_Manager::generate_mysql_replication_hostgroups_table() {