summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2006-05-04 22:19:31 +0300
committerunknown <monty@mysql.com>2006-05-04 22:19:31 +0300
commitafe4715242576a8575abcec955baa4bfd78af85e (patch)
treeab94fbdd3f6cb59559386eb27ddc3c505971f35d /sql/sql_lex.cc
parent94964da31fe3fa849e951ce069aa09f08f13315d (diff)
downloadmariadb-git-afe4715242576a8575abcec955baa4bfd78af85e.tar.gz
Fixed wrong free in sql_view.cc
mysql-test-run now fails in case of warnings mysql-test/lib/mtr_report.pl: Fail if find warnings mysql-test/mysql-test-run.sh: Fail if find warnings sql/sql_lex.cc: Initalize st_lex properly sql/sql_view.cc: Fixed problem with unaligned memory (wrong free)
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index 2b31abd6a50..c4c72910265 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -191,8 +191,11 @@ void lex_start(THD *thd, uchar *buf,uint length)
void lex_end(LEX *lex)
{
+ DBUG_ENTER("lex_end");
+ DBUG_PRINT("enter", ("lex: 0x%lx", (long) lex));
x_free(lex->yacc_yyss);
x_free(lex->yacc_yyvs);
+ DBUG_VOID_RETURN;
}
@@ -1626,7 +1629,8 @@ void st_select_lex::print_limit(THD *thd, String *str)
*/
st_lex::st_lex()
- :result(0), sql_command(SQLCOM_END), query_tables_own_last(0)
+ :result(0), yacc_yyss(0), yacc_yyvs(0),
+ sql_command(SQLCOM_END), query_tables_own_last(0)
{
hash_init(&sroutines, system_charset_info, 0, 0, 0, sp_sroutine_key, 0, 0);
sroutines_list.empty();