Commit 47a94462 authored by Davi Arnaut's avatar Davi Arnaut

Bug#34043: Server loops excessively in _checkchunk() when safemalloc is enabled

Post-merge fix: cast argument and correct type in assignment.
parent 3143a4dc
......@@ -6338,7 +6338,7 @@ void free_win_path_patterns()
for (i=0 ; i < patterns.elements ; i++)
{
const char** pattern= dynamic_element(&patterns, i, const char**);
my_free(*pattern);
my_free((void *) *pattern);
}
delete_dynamic(&patterns);
}
......
......@@ -355,7 +355,7 @@ void filesort_free_buffers(TABLE *table, bool full)
table->sort.sort_keys= NULL;
my_free(table->sort.buffpek);
table->sort.buffpek= NULL;
table->sort.buffpek_len= NULL;
table->sort.buffpek_len= 0;
}
my_free(table->sort.addon_buf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment