Follow-up fix for MDEV-12352: Plug a memory leak

trx_rollback_active(): When aborting the rollback, free the query graph.
This commit is contained in:
Marko Mäkelä 2017-12-13 22:30:13 +02:00
parent b1977a39de
commit 9d76b27498
2 changed files with 4 additions and 0 deletions

View File

@ -579,6 +579,8 @@ trx_rollback_active(
ut_ad(!srv_undo_sources);
ut_ad(srv_fast_shutdown);
ut_ad(!dictionary_locked);
que_graph_free(static_cast<que_t*>(
roll_node->undo_thr->common.parent));
goto func_exit;
}

View File

@ -579,6 +579,8 @@ trx_rollback_active(
ut_ad(!srv_undo_sources);
ut_ad(srv_fast_shutdown);
ut_ad(!dictionary_locked);
que_graph_free(static_cast<que_t*>(
roll_node->undo_thr->common.parent));
goto func_exit;
}