mirror of https://github.com/PCSX2/pcsx2.git
Update libiso.cpp
Oops, accidentally caused a use-after-free
This commit is contained in:
parent
1e951605fb
commit
e1dbdce91e
|
@ -631,8 +631,8 @@ isoFile *isoCreate(const char *filename, int flags)
|
|||
iso->handle = _openfile(iso->filename, O_WRONLY | O_CREAT);
|
||||
if (iso->handle == NULL)
|
||||
{
|
||||
free(iso);
|
||||
printf("Error loading %s\n", iso->filename);
|
||||
free(iso);
|
||||
return NULL;
|
||||
}
|
||||
printf("isoCreate: %s ok\n", iso->filename);
|
||||
|
|
Loading…
Reference in New Issue