Commit 89ce78f2 authored by unknown's avatar unknown

fixed reading of free'd memory when opening a table with non-existing plugin


sql/table.cc:
  fixed reading of free'd memory
parent 260bc302
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
void open_table_error(TABLE_SHARE *share, int error, int db_errno, void open_table_error(TABLE_SHARE *share, int error, int db_errno,
myf errortype, int errarg); myf errortype, int errarg);
static int open_binary_frm(THD *thd, TABLE_SHARE *share, uchar *head, static int open_binary_frm(THD *thd, TABLE_SHARE *share,
File file); uchar *head, File file);
static void fix_type_pointers(const char ***array, TYPELIB *point_to_type, static void fix_type_pointers(const char ***array, TYPELIB *point_to_type,
uint types, char **names); uint types, char **names);
static uint find_field(Field **fields, uint start, uint length); static uint find_field(Field **fields, uint start, uint length);
...@@ -717,8 +717,8 @@ static int open_binary_frm(THD *thd, TABLE_SHARE *share, uchar *head, ...@@ -717,8 +717,8 @@ static int open_binary_frm(THD *thd, TABLE_SHARE *share, uchar *head,
keyinfo->parser= plugin_lock(&parser_name, MYSQL_FTPARSER_PLUGIN); keyinfo->parser= plugin_lock(&parser_name, MYSQL_FTPARSER_PLUGIN);
if (! keyinfo->parser) if (! keyinfo->parser)
{ {
my_free(buff, MYF(0));
my_error(ER_PLUGIN_IS_NOT_LOADED, MYF(0), parser_name.str); my_error(ER_PLUGIN_IS_NOT_LOADED, MYF(0), parser_name.str);
my_free(buff, MYF(0));
goto err; goto err;
} }
} }
......
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