From e35b944ca17f31e9d62fe22535733b9666cb8647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Mon, 29 May 2023 13:19:26 +0000 Subject: [PATCH] Added destructor to MySQL_STMT_Manager_v14() --- lib/MySQL_PreparedStatement.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/MySQL_PreparedStatement.cpp b/lib/MySQL_PreparedStatement.cpp index a7bc04b7a..f98eb3ea1 100644 --- a/lib/MySQL_PreparedStatement.cpp +++ b/lib/MySQL_PreparedStatement.cpp @@ -581,6 +581,10 @@ MySQL_STMT_Manager_v14::MySQL_STMT_Manager_v14() { } MySQL_STMT_Manager_v14::~MySQL_STMT_Manager_v14() { + for (auto it = map_stmt_id_to_info.begin(); it != map_stmt_id_to_info.end(); ++it) { + MySQL_STMT_Global_info * a = it->second; + delete a; + } } void MySQL_STMT_Manager_v14::ref_count_client(uint64_t _stmt_id ,int _v, bool lock) {