[cppcheck] closes a file that would be left open if memory allocation fails

This commit is contained in:
Harri Pitkänen 2010-10-07 15:37:39 +01:00 committed by Noel Power
parent c7d221f406
commit d08754a844

View file

@ -245,6 +245,7 @@ static oslProfile SAL_CALL osl_psz_openProfile(const sal_Char *pszProfileName, o
if ( pProfile == 0 )
{
closeFileImpl(pFile, Flags);
return 0;
}