summaryrefslogtreecommitdiff
path: root/sql/sql_view.cc
diff options
context:
space:
mode:
authordlenev@brandersnatch.localdomain <>2005-03-04 20:54:24 +0300
committerdlenev@brandersnatch.localdomain <>2005-03-04 20:54:24 +0300
commitc24820834a65223343961dd8b92c8e5e9c0ea95d (patch)
treefbd033124ffb2c9d1f8c901a1390220220019891 /sql/sql_view.cc
parent5b16dbf960f0abb90b5ddde001bc72f4efdcfa66 (diff)
downloadmariadb-git-c24820834a65223343961dd8b92c8e5e9c0ea95d.tar.gz
Fix for memory leak which was introduced by patch improving locking in SP.
Made mysql_make_view() to call destructor for st_lex_local objects before throwing them away (this happens in case of error).
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r--sql/sql_view.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc
index 0c7bf2632ec..31277452118 100644
--- a/sql/sql_view.cc
+++ b/sql/sql_view.cc
@@ -854,6 +854,7 @@ ok2:
err:
if (arena)
thd->restore_backup_item_arena(arena, &backup);
+ delete table->view;
table->view= 0; // now it is not VIEW placeholder
thd->lex= old_lex;
DBUG_RETURN(1);