Fix USE_AFTER_FREE (CWE-672)
The file will be closed on line 540
This commit is contained in:
parent
8c493a910f
commit
8be02be08b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user