[Libreoffice-commits] core.git: desktop/win32

Caolán McNamara caolanm at redhat.com
Fri Oct 20 13:25:32 UTC 2017


 desktop/win32/source/officeloader/officeloader.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 92bad369d99b02f1be0bfb8f79d3e85c271492bb
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Oct 20 11:39:07 2017 +0100

    drmemory: fix small leak
    
    Change-Id: Ib7f6beb52dc832ee570e21ac5ab65d25946b622f
    Reviewed-on: https://gerrit.libreoffice.org/43597
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/desktop/win32/source/officeloader/officeloader.cxx b/desktop/win32/source/officeloader/officeloader.cxx
index 338a5fb8db96..45b94a8e128d 100644
--- a/desktop/win32/source/officeloader/officeloader.cxx
+++ b/desktop/win32/source/officeloader/officeloader.cxx
@@ -125,6 +125,8 @@ int WINAPI wWinMain( HINSTANCE, HINSTANCE, LPWSTR, int )
                     }
                 }
             }
+
+            LocalFree(argv2);
         }
 
         if ( _ltow( (long)GetCurrentProcessId(),szParentProcessId, 10 ) && bHeadlessMode )
@@ -172,6 +174,7 @@ int WINAPI wWinMain( HINSTANCE, HINSTANCE, LPWSTR, int )
     } while ( fSuccess
               && ( EXITHELPER_CRASH_WITH_RESTART == dwExitCode || EXITHELPER_NORMAL_RESTART == dwExitCode ));
     delete[] lpCommandLine;
+    LocalFree(argv);
 
     return fSuccess ? dwExitCode : -1;
 }


More information about the Libreoffice-commits mailing list