1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

fixed memory leak (now JOIN cleaning procedure always called)

sql/sql_select.cc:
  always clean JOIN
This commit is contained in:
unknown
2003-09-13 02:07:06 +03:00
parent 11930efba6
commit 5b0c15a42b

View File

@@ -1514,7 +1514,7 @@ mysql_select(THD *thd, Item ***rref_pointer_array,
conds, og_num, order, group, having, proc_param, conds, og_num, order, group, having, proc_param,
select_lex, unit, tables_and_fields_initied)) select_lex, unit, tables_and_fields_initied))
{ {
DBUG_RETURN(-1); goto err;
} }
} }
join->select_options= select_options; join->select_options= select_options;
@@ -1529,15 +1529,12 @@ mysql_select(THD *thd, Item ***rref_pointer_array,
conds, og_num, order, group, having, proc_param, conds, og_num, order, group, having, proc_param,
select_lex, unit, tables_and_fields_initied)) select_lex, unit, tables_and_fields_initied))
{ {
DBUG_RETURN(-1); goto err;
} }
} }
if ((err= join->optimize())) if ((err= join->optimize()))
{ {
if (err == -1)
DBUG_RETURN(join->error);
DBUG_ASSERT(err == 1);
goto err; // 1 goto err; // 1
} }