diff options
author | Harri Pitkänen <hatapitk@iki.fi> | 2010-10-07 15:37:39 +0100 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2010-10-07 15:37:39 +0100 |
commit | d08754a8446f4d32f8d59d953b02ac856ccb54d5 (patch) | |
tree | 45b063459ff589e489a11032a09537f7cb8a6c19 | |
parent | c7d221f406a2f1723401b7576a8ff0c7a429a222 (diff) |
[cppcheck] closes a file that would be left open if memory allocation fails
-rw-r--r-- | sal/osl/unx/profile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sal/osl/unx/profile.c b/sal/osl/unx/profile.c index c77a27543261..9f9a4de467e8 100644 --- a/sal/osl/unx/profile.c +++ b/sal/osl/unx/profile.c @@ -245,6 +245,7 @@ static oslProfile SAL_CALL osl_psz_openProfile(const sal_Char *pszProfileName, o if ( pProfile == 0 ) { + closeFileImpl(pFile, Flags); return 0; } |