From 3a6283cb3cc0d17a028cd962e308a6094e29516c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Lindstr=C3=B6m?= Date: Fri, 6 Apr 2018 08:48:11 +0300 Subject: [PATCH] Fix out of array access. --- client/mysqltest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/mysqltest.cc b/client/mysqltest.cc index 77584e70afe..734b263df66 100644 --- a/client/mysqltest.cc +++ b/client/mysqltest.cc @@ -1462,7 +1462,7 @@ void free_used_memory() dynstr_free(&(*q)->content); my_free((*q)); } - for (i= 0; i < 12; i++) + for (i= 0; i < 10; i++) { if (var_reg[i].alloced_len) my_free(var_reg[i].str_val);