Skip to content

Commit 8be02be

Browse files
FaramosCZsvoj
authored andcommitted
Fix USE_AFTER_FREE (CWE-672)
The file will be closed on line 540
1 parent 8c493a9 commit 8be02be

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sql/wsrep_binlog.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,6 @@ void wsrep_dump_rbr_buf_with_header(THD *thd, const void *rbr_buf,
506506

507507
if (init_io_cache(&cache, file, 0, WRITE_CACHE, 0, 0, MYF(MY_WME | MY_NABP)))
508508
{
509-
mysql_file_close(file, MYF(MY_WME));
510509
goto cleanup2;
511510
}
512511

0 commit comments

Comments
 (0)