[Libreoffice-commits] core.git: sal/osl

Takeshi Abe tabe at fixedpoint.jp
Tue Apr 3 16:41:23 UTC 2018


 sal/osl/w32/profile.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit eb77037ea1aa8a388be6d14ed744f46638db0202
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Tue Apr 3 22:31:07 2018 +0900

    osl: Fix possible memleak
    
    Change-Id: I162993df6b802bd51e4e079b3dc530476b220e4e
    Reviewed-on: https://gerrit.libreoffice.org/52325
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

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


More information about the Libreoffice-commits mailing list