summaryrefslogtreecommitdiff
path: root/sql/sp.cc
diff options
context:
space:
mode:
authordlenev@brandersnatch.localdomain <>2005-03-05 16:31:58 +0300
committerdlenev@brandersnatch.localdomain <>2005-03-05 16:31:58 +0300
commite6a506c3973decf7c5dcb2393dfea1d2194633eb (patch)
treec5edb86c94bf138a7049952573b7f5752324da7a /sql/sp.cc
parentc24820834a65223343961dd8b92c8e5e9c0ea95d (diff)
downloadmariadb-git-e6a506c3973decf7c5dcb2393dfea1d2194633eb.tar.gz
Fix for yet another memleak caused by SP-locking patch.
Improved handling of situations when we encounter error during CREATE PROCEDURE (FUNCTION/TRIGGER/...) and bail out of yyparse() without restoring proper THD::lex.
Diffstat (limited to 'sql/sp.cc')
-rw-r--r--sql/sp.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/sp.cc b/sql/sp.cc
index 8b8e8897180..3f6d4d0bf1b 100644
--- a/sql/sp.cc
+++ b/sql/sp.cc
@@ -307,8 +307,6 @@ db_find_routine(THD *thd, int type, sp_name *name, sp_head **sphp)
goto done;
if (sp)
{
- if (oldlex != newlex)
- sp->restore_lex(thd);
delete sp;
newlex->sphead= NULL;
}