From 41459e4c70c1e2740297f5c8e03640ff833aedd6 Mon Sep 17 00:00:00 2001 From: Valentin Rakush Date: Mon, 25 Nov 2019 09:01:23 +0000 Subject: [PATCH] Fix memory leak in MySQL_HostGroups_Manager --- lib/MySQL_HostGroups_Manager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/MySQL_HostGroups_Manager.cpp b/lib/MySQL_HostGroups_Manager.cpp index 9cd219485..d59a02bed 100644 --- a/lib/MySQL_HostGroups_Manager.cpp +++ b/lib/MySQL_HostGroups_Manager.cpp @@ -1053,6 +1053,8 @@ MySQL_HostGroups_Manager::~MySQL_HostGroups_Manager() { if (admindb) { delete admindb; } + for (auto info : AWS_Aurora_Info_Map) + delete info.second; #ifdef MHM_PTHREAD_MUTEX pthread_mutex_destroy(&lock); #endif