summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2018-04-03 22:31:07 +0900
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-03 18:40:54 +0200
commiteb77037ea1aa8a388be6d14ed744f46638db0202 (patch)
treea8681e0168b410e9372816f7ee63a647e36212f6 /sal
parent05fdfa9a66dc1fe299ad51f78be3053abfef090e (diff)
osl: Fix possible memleak
Change-Id: I162993df6b802bd51e4e079b3dc530476b220e4e Reviewed-on: https://gerrit.libreoffice.org/52325 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/profile.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sal/osl/w32/profile.cxx b/sal/osl/w32/profile.cxx
index b9fd1dc6e646..26a11e4d8672 100644
--- a/sal/osl/w32/profile.cxx
+++ b/sal/osl/w32/profile.cxx
@@ -2106,6 +2106,7 @@ static bool lookupProfile(const sal_Unicode *strPath, const sal_Unicode *strFile
{
if ((nPos = rtl_ustr_lastIndexOfChar(strExecutable->buffer, L':')) == -1)
{
+ rtl_uString_release(strExecutable);
return false;
}
else