[cppcheck] closes a file that would be left open if memory allocation fails
This commit is contained in:
parent
c7d221f406
commit
d08754a844
1 changed files with 1 additions and 0 deletions
|
@ -245,6 +245,7 @@ static oslProfile SAL_CALL osl_psz_openProfile(const sal_Char *pszProfileName, o
|
|||
|
||||
if ( pProfile == 0 )
|
||||
{
|
||||
closeFileImpl(pFile, Flags);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue