summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2018-04-06 08:48:11 +0300
committerJan Lindström <jan.lindstrom@mariadb.com>2018-04-06 08:48:11 +0300
commit3a6283cb3cc0d17a028cd962e308a6094e29516c (patch)
treec353e504afcddda355caefe9dc5d697ce82bfdb5 /client
parentafbd45a791a4a8cde19e0b3d5b883f79a2ccc305 (diff)
downloadmariadb-git-3a6283cb3cc0d17a028cd962e308a6094e29516c.tar.gz
Fix out of array access.
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.cc2
1 files changed, 1 insertions, 1 deletions
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);