Commit c46304f7 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix valgrind error.

Do not accessing trx->mysql_log_file_name
after transaction end.
parent 630035be
......@@ -505,6 +505,7 @@ trx_free(trx_t*& trx)
assert_trx_is_free(trx);
trx->mysql_thd = 0;
trx->mysql_log_file_name = 0;
// FIXME: We need to avoid this heap free/alloc for each commit.
if (trx->autoinc_locks != NULL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment