Skip to content
Permalink
Browse files
Fix USE_AFTER_FREE (CWE-672)
The file will be closed on line 540
  • Loading branch information
FaramosCZ authored and Sergey Vojtovich committed Mar 21, 2019
1 parent 8c493a9 commit 8be02be
Showing 1 changed file with 0 additions and 1 deletion.
@@ -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;
}

0 comments on commit 8be02be

Please sign in to comment.