Commit 00399c00 authored by evgen@sunlight.local's avatar evgen@sunlight.local

sql_view.cc:

  Memory leak fix
parent a73d90e7
...@@ -208,7 +208,10 @@ fill_defined_view_parts (THD *thd, TABLE_LIST *view) ...@@ -208,7 +208,10 @@ fill_defined_view_parts (THD *thd, TABLE_LIST *view)
lex->create_view_suid= decoy.view_suid ? lex->create_view_suid= decoy.view_suid ?
VIEW_SUID_DEFINER : VIEW_SUID_INVOKER; VIEW_SUID_DEFINER : VIEW_SUID_INVOKER;
if (free_view) if (free_view)
{
delete decoy.view; delete decoy.view;
lex->cleanup_after_one_table_open();
}
return FALSE; return FALSE;
} }
......
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