Skip to content

Commit a3561b3

Browse files
committed
Bug#36526369 MySQL server crashes on UPDATE after ALTER TABLE
- Post push fix for memory leak Change-Id: I034bb20c71dfe3ae467e762b2dd7c7f95fb0679b
1 parent 31a89dc commit a3561b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

storage/innobase/mtr/mtr0log.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,9 @@ bool mlog_open_and_write_index(mtr_t *mtr, const byte *rec,
846846
}
847847

848848
if (!mlog_open(mtr, alloc, log_ptr)) {
849+
if (is_versioned) {
850+
delete[] fields_with_changed_order;
851+
}
849852
/* logging is disabled */
850853
return (false);
851854
}

0 commit comments

Comments
 (0)