diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2018-04-06 08:48:11 +0300 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2018-04-06 08:48:11 +0300 |
commit | 3a6283cb3cc0d17a028cd962e308a6094e29516c (patch) | |
tree | c353e504afcddda355caefe9dc5d697ce82bfdb5 /client | |
parent | afbd45a791a4a8cde19e0b3d5b883f79a2ccc305 (diff) | |
download | mariadb-git-3a6283cb3cc0d17a028cd962e308a6094e29516c.tar.gz |
Fix out of array access.
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.cc | 2 |
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); |