1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fix out of array access.

This commit is contained in:
Jan Lindström
2018-04-06 08:48:11 +03:00
parent afbd45a791
commit 3a6283cb3c

View File

@@ -1462,7 +1462,7 @@ void free_used_memory()
dynstr_free(&(*q)->content); dynstr_free(&(*q)->content);
my_free((*q)); my_free((*q));
} }
for (i= 0; i < 12; i++) for (i= 0; i < 10; i++)
{ {
if (var_reg[i].alloced_len) if (var_reg[i].alloced_len)
my_free(var_reg[i].str_val); my_free(var_reg[i].str_val);