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

New commits:
commit eb77037ea1aa8a388be6d14ed744f46638db0202
Author: Takeshi Abe <t...@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 <c...@libreoffice.org>
    Reviewed-by: Noel Grandin <noel.gran...@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
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to