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

Post-merge fix: cast argument and correct type in assignment.
This commit is contained in:
Davi Arnaut 2010-07-08 22:19:57 -03:00
parent a10ae35328
commit dbf76b0deb
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}

View file

@ -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);