mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
fixed memory leak in procedure with subselects
This commit is contained in:
@ -89,6 +89,7 @@ proc_analyse_init(THD *thd, ORDER *param, select_result *result,
|
|||||||
if ((*param->item)->type() != Item::INT_ITEM ||
|
if ((*param->item)->type() != Item::INT_ITEM ||
|
||||||
(*param->item)->val() < 0)
|
(*param->item)->val() < 0)
|
||||||
{
|
{
|
||||||
|
delete pc;
|
||||||
my_error(ER_WRONG_PARAMETERS_TO_PROCEDURE, MYF(0), proc_name);
|
my_error(ER_WRONG_PARAMETERS_TO_PROCEDURE, MYF(0), proc_name);
|
||||||
DBUG_RETURN(0);
|
DBUG_RETURN(0);
|
||||||
}
|
}
|
||||||
@ -103,6 +104,7 @@ proc_analyse_init(THD *thd, ORDER *param, select_result *result,
|
|||||||
if ((*param->item)->type() != Item::INT_ITEM ||
|
if ((*param->item)->type() != Item::INT_ITEM ||
|
||||||
(*param->item)->val() < 0)
|
(*param->item)->val() < 0)
|
||||||
{
|
{
|
||||||
|
delete pc;
|
||||||
my_error(ER_WRONG_PARAMETERS_TO_PROCEDURE, MYF(0), proc_name);
|
my_error(ER_WRONG_PARAMETERS_TO_PROCEDURE, MYF(0), proc_name);
|
||||||
DBUG_RETURN(0);
|
DBUG_RETURN(0);
|
||||||
}
|
}
|
||||||
@ -111,6 +113,7 @@ proc_analyse_init(THD *thd, ORDER *param, select_result *result,
|
|||||||
else if ((*param->item)->type() != Item::INT_ITEM ||
|
else if ((*param->item)->type() != Item::INT_ITEM ||
|
||||||
(*param->item)->val() < 0)
|
(*param->item)->val() < 0)
|
||||||
{
|
{
|
||||||
|
delete pc;
|
||||||
my_error(ER_WRONG_PARAMETERS_TO_PROCEDURE, MYF(0), proc_name);
|
my_error(ER_WRONG_PARAMETERS_TO_PROCEDURE, MYF(0), proc_name);
|
||||||
DBUG_RETURN(0);
|
DBUG_RETURN(0);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user