Skip to content

Commit 9d76b27

Browse files
committed
Follow-up fix for MDEV-12352: Plug a memory leak
trx_rollback_active(): When aborting the rollback, free the query graph.
1 parent b1977a3 commit 9d76b27

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

storage/innobase/trx/trx0roll.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,8 @@ trx_rollback_active(
579579
ut_ad(!srv_undo_sources);
580580
ut_ad(srv_fast_shutdown);
581581
ut_ad(!dictionary_locked);
582+
que_graph_free(static_cast<que_t*>(
583+
roll_node->undo_thr->common.parent));
582584
goto func_exit;
583585
}
584586

storage/xtradb/trx/trx0roll.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,8 @@ trx_rollback_active(
579579
ut_ad(!srv_undo_sources);
580580
ut_ad(srv_fast_shutdown);
581581
ut_ad(!dictionary_locked);
582+
que_graph_free(static_cast<que_t*>(
583+
roll_node->undo_thr->common.parent));
582584
goto func_exit;
583585
}
584586

0 commit comments

Comments
 (0)