summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2016-09-22 17:21:21 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2016-09-22 17:21:21 +0000
commitc46304f7514fd64e2c927693d3d130ccbe710e73 (patch)
tree53ae14748bb8e24c6da55f14bf969ff0d658265b
parent630035beafc70f18fc23da7140a1f6a5eb9d8884 (diff)
downloadmariadb-git-c46304f7514fd64e2c927693d3d130ccbe710e73.tar.gz
Fix valgrind error.
Do not accessing trx->mysql_log_file_name after transaction end.
-rw-r--r--storage/innobase/trx/trx0trx.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/innobase/trx/trx0trx.cc b/storage/innobase/trx/trx0trx.cc
index b209412903f..68a60e36ce3 100644
--- a/storage/innobase/trx/trx0trx.cc
+++ b/storage/innobase/trx/trx0trx.cc
@@ -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) {