summaryrefslogtreecommitdiff
path: root/sql/wsrep_binlog.cc
diff options
context:
space:
mode:
authorFaramosCZ <mschorm@centrum.cz>2018-11-28 14:16:52 +0100
committerSergey Vojtovich <svoj@mariadb.org>2019-03-22 02:32:47 +0400
commit8be02be08bf6a7227e2ab6a5443b63f3a155e2a9 (patch)
treea6b326d4c7bcd294dd86f0b3942866ec6fc2c8fd /sql/wsrep_binlog.cc
parent8c493a910fd224235b3eddb4bacac0592146cac6 (diff)
downloadmariadb-git-8be02be08bf6a7227e2ab6a5443b63f3a155e2a9.tar.gz
Fix USE_AFTER_FREE (CWE-672)
The file will be closed on line 540
Diffstat (limited to 'sql/wsrep_binlog.cc')
-rw-r--r--sql/wsrep_binlog.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/wsrep_binlog.cc b/sql/wsrep_binlog.cc
index c7674cd0169..39c77133f02 100644
--- a/sql/wsrep_binlog.cc
+++ b/sql/wsrep_binlog.cc
@@ -506,7 +506,6 @@ void wsrep_dump_rbr_buf_with_header(THD *thd, const void *rbr_buf,
if (init_io_cache(&cache, file, 0, WRITE_CACHE, 0, 0, MYF(MY_WME | MY_NABP)))
{
- mysql_file_close(file, MYF(MY_WME));
goto cleanup2;
}