[Libreoffice-commits] .: sal/osl

Noel Power noelp at kemper.freedesktop.org
Thu Oct 7 07:38:10 PDT 2010


 sal/osl/unx/profile.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 809c273870d6e2bedd034a3ffbff39752a3fa65f
Author: Harri Pitkänen <hatapitk at iki.fi>
Date:   Thu Oct 7 15:37:39 2010 +0100

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

diff --git a/sal/osl/unx/profile.c b/sal/osl/unx/profile.c
index 95e9606..cccf745 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;
     }
 


More information about the Libreoffice-commits mailing list