summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorJoachim Lingner <jl@openoffice.org>2000-12-06 07:57:45 +0000
committerJoachim Lingner <jl@openoffice.org>2000-12-06 07:57:45 +0000
commit8981a051c303155d3df0ddf17d9c53e4a94e707e (patch)
tree02cf29b04de323edf3001fe4cc614a6f058d4d37 /sal
parent3b4df74f619418d1451f5b9db9c0bb6b2b9140b7 (diff)
#80866# osl_openProfile uses local variable rtl_uString FileName and did not release it, memory leak
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/profile.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sal/osl/w32/profile.c b/sal/osl/w32/profile.c
index 6e575f861eb3..0f51b122e2a0 100644
--- a/sal/osl/w32/profile.c
+++ b/sal/osl/w32/profile.c
@@ -2,9 +2,9 @@
*
* $RCSfile: profile.c,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: tra $ $Date: 2000-11-22 13:53:10 $
+ * last change: $Author: jl $ $Date: 2000-12-06 08:57:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -279,6 +279,9 @@ oslProfile SAL_CALL osl_openProfile(rtl_uString *strProfileName, sal_uInt32 Flag
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_openProfile [not opened]\n");
#endif
+ if( FileName)
+ rtl_uString_release( FileName);
+
return (NULL);
}
@@ -323,6 +326,9 @@ oslProfile SAL_CALL osl_openProfile(rtl_uString *strProfileName, sal_uInt32 Flag
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_openProfile [ok]\n");
#endif
+ if( FileName)
+ rtl_uString_release( FileName);
+
return (pProfile);
}