Skip to content

Commit 29bc619

Browse files
committed
A cleanup for MDEV-31578 DECLARE CURSOR: "Memory not freed: 280 bytes lost" on syntax error
Removing the method LEX::delete_if_not_sp_lex_in_use(). It was not really used.
1 parent bd7908e commit 29bc619

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sql/sql_lex.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3429,11 +3429,7 @@ struct LEX: public Query_tables_list
34293429
sp_head *sphead;
34303430
sp_name *spname;
34313431
bool sp_lex_in_use; // Keep track on lex usage in SPs for error handling
3432-
void delete_if_not_sp_lex_in_use()
3433-
{
3434-
if (!sp_lex_in_use)
3435-
delete this;
3436-
}
3432+
34373433
sp_pcontext *spcont;
34383434

34393435
st_sp_chistics sp_chistics;

0 commit comments

Comments
 (0)