summaryrefslogtreecommitdiff
path: root/sal/osl/unx/profile.c
diff options
context:
space:
mode:
authorHarri Pitkänen <hatapitk@iki.fi>2010-10-07 15:37:39 +0100
committerNoel Power <noel.power@novell.com>2010-10-07 15:37:39 +0100
commitd08754a8446f4d32f8d59d953b02ac856ccb54d5 (patch)
tree45b063459ff589e489a11032a09537f7cb8a6c19 /sal/osl/unx/profile.c
parentc7d221f406a2f1723401b7576a8ff0c7a429a222 (diff)
[cppcheck] closes a file that would be left open if memory allocation fails
Diffstat (limited to 'sal/osl/unx/profile.c')
-rw-r--r--sal/osl/unx/profile.c1
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;
}