Skip to content

Commit d891d23

Browse files
committed
MDEV-37724: Debug Memory leak with InnoDB ALTER TABLE ALGORITHM=INSTANT
Instrumented debug mode triggering of instant_insert_fail failed to free partition memory like the que_eval_sql function who's failure it intended to emulate. Corrected by freeing the partition information when this internal debug mode instrumented condition occured.
1 parent e1f12f1 commit d891d23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

storage/innobase/handler/handler0alter.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5528,6 +5528,7 @@ static bool innodb_insert_sys_columns(
55285528
DBUG_EXECUTE_IF("instant_insert_fail",
55295529
my_error(ER_INTERNAL_ERROR, MYF(0),
55305530
"InnoDB: Insert into SYS_COLUMNS failed");
5531+
pars_info_free(info);
55315532
return true;);
55325533

55335534
if (DB_SUCCESS != que_eval_sql(

0 commit comments

Comments
 (0)