diff options
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r-- | sql/sql_view.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc index 6581297c72e..a987b9e7028 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -208,7 +208,10 @@ fill_defined_view_parts (THD *thd, TABLE_LIST *view) lex->create_view_suid= decoy.view_suid ? VIEW_SUID_DEFINER : VIEW_SUID_INVOKER; if (free_view) + { delete decoy.view; + lex->cleanup_after_one_table_open(); + } return FALSE; } |