Skip to content

Commit 3caffba

Browse files
mayprasadahlerlend
authored andcommitted
Bug#36526369 MySQL server crashes on UPDATE after ALTER TABLE
- Post push fix for memory leak Change-Id: I034bb20c71dfe3ae467e762b2dd7c7f95fb0679b
1 parent 5d6692d commit 3caffba

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
@@ -851,6 +851,9 @@ bool mlog_open_and_write_index(mtr_t *mtr, const byte *rec,
851851
}
852852

853853
if (!mlog_open(mtr, alloc, log_ptr)) {
854+
if (is_versioned) {
855+
delete[] fields_with_changed_order;
856+
}
854857
/* logging is disabled */
855858
return (false);
856859
}

0 commit comments

Comments
 (0)