mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug #51208: Extra string allocation from thd->mem_root
in sql_show.cc, find_files() Removed the extra allocation.
This commit is contained in:
@ -534,12 +534,6 @@ find_files(THD *thd, List<LEX_STRING> *files, const char *db,
|
|||||||
else if (wild_compare(uname, wild, 0))
|
else if (wild_compare(uname, wild, 0))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!(file_name=
|
|
||||||
thd->make_lex_string(file_name, uname, file_name_len, TRUE)))
|
|
||||||
{
|
|
||||||
my_dirend(dirp);
|
|
||||||
DBUG_RETURN(FIND_FILES_OOM);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user