Free memory on error

svn path=/trunk/; revision=42618
This commit is contained in:
Gregor Schneider 2009-08-11 14:37:52 +00:00
parent d6e84af5f7
commit d2c4562d5b

View file

@ -1489,7 +1489,7 @@ int CDECL _wopen(const wchar_t *path,int flags,...)
free(patha);
return retval;
}
free(patha);
_dosmaperr(GetLastError());
return -1;
}