Fix USE_AFTER_FREE (CWE-672)

The file will be closed on line 540
This commit is contained in:
FaramosCZ 2018-11-28 14:16:52 +01:00 committed by Sergey Vojtovich
parent 8c493a910f
commit 8be02be08b

View File

@ -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;
}