Fix out of array access.

This commit is contained in:
Jan Lindström 2018-04-06 08:48:11 +03:00
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);