Update libiso.cpp

Oops, accidentally caused a use-after-free
This commit is contained in:
Moshe Kaplan 2014-07-29 12:22:44 -04:00
parent 1e951605fb
commit e1dbdce91e
1 changed files with 1 additions and 1 deletions

View File

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