diff options
author | unknown <monty@mysql.com> | 2006-05-04 15:30:38 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2006-05-04 15:30:38 +0300 |
commit | 93db6d4aa2ec163f85fee5e630421419b6767aef (patch) | |
tree | 4862c051c6d6495a8c7c01a8d451ce10c0c8c2e5 /sql/sp.cc | |
parent | a766cf91ab21d0ecdc6de689148964c97ea3180a (diff) | |
download | mariadb-git-93db6d4aa2ec163f85fee5e630421419b6767aef.tar.gz |
Fixed memory leak in sql_parse.cc (lex_end() was not called)
This caused sp-vars.test to fail
sql/item_func.h:
Removed compiler warning
sql/sp.cc:
Fixed memory leak in sql_parse.cc
sql/sp_head.cc:
Fixed memory leak in sql_parse.cc
sql/sp_head.h:
Fixed memory leak in sql_parse.cc
Diffstat (limited to 'sql/sp.cc')
-rw-r--r-- | sql/sp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sp.cc b/sql/sp.cc index 7df22c92cb8..cae7a56fa57 100644 --- a/sql/sp.cc +++ b/sql/sp.cc @@ -269,7 +269,6 @@ db_find_routine_aux(THD *thd, int type, sp_name *name, TABLE *table) static int db_find_routine(THD *thd, int type, sp_name *name, sp_head **sphp) { - extern int MYSQLparse(void *thd); TABLE *table; const char *params, *returns, *body; int ret; @@ -478,6 +477,7 @@ db_load_routine(THD *thd, int type, sp_name *name, sp_head **sphp, (*sphp)->optimize(); } end: + lex_end(thd->lex); thd->spcont= old_spcont; thd->variables.sql_mode= old_sql_mode; thd->variables.select_limit= old_select_limit; |