From 1e4c10865992bcf6ed9666a3b64caa5edaf68a5c Mon Sep 17 00:00:00 2001 From: Rahim Kanji Date: Fri, 16 Feb 2024 11:52:10 +0500 Subject: [PATCH] Fixed memory leak in querying stats_mysql_prepared_statements_info --- lib/MySQL_PreparedStatement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MySQL_PreparedStatement.cpp b/lib/MySQL_PreparedStatement.cpp index f3d82ea084..5f7719492a 100644 --- a/lib/MySQL_PreparedStatement.cpp +++ b/lib/MySQL_PreparedStatement.cpp @@ -1061,7 +1061,7 @@ class PS_global_stats { } void free_row(char **pta) { int i; - for (i=0;i<7;i++) { + for (i=0;i<9;i++) { assert(pta[i]); free(pta[i]); }