Bug #51208: Extra string allocation from thd->mem_root

in sql_show.cc, find_files()

Removed the extra allocation.
This commit is contained in:
Georgi Kodinov 2010-11-02 15:20:02 +02:00
commit 1a5a109524

View file

@ -534,12 +534,6 @@ find_files(THD *thd, List<LEX_STRING> *files, const char *db,
else if (wild_compare(uname, wild, 0))
continue;
}
if (!(file_name=
thd->make_lex_string(file_name, uname, file_name_len, TRUE)))
{
my_dirend(dirp);
DBUG_RETURN(FIND_FILES_OOM);
}
}
else
{