From a6debf5126b9ec5bf2822fd47273ffc11ecc1cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Sat, 1 Feb 2020 20:24:15 +1100 Subject: [PATCH] Fix memory leak in monitor_AWS_Aurora_thread_HG() --- lib/MySQL_Monitor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/MySQL_Monitor.cpp b/lib/MySQL_Monitor.cpp index c2b67c8cd..0620386bc 100644 --- a/lib/MySQL_Monitor.cpp +++ b/lib/MySQL_Monitor.cpp @@ -3947,6 +3947,10 @@ void * monitor_AWS_Aurora_thread_HG(void *arg) { while (GloMyMon->shutdown==false && mysql_thread___monitor_enabled==true && exit_now==false) { + if (mmsd) { + delete mmsd; + mmsd = NULL; + } unsigned int glover; t1=monotonic_time();