diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-20 11:39:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-20 15:25:05 +0200 |
commit | 92bad369d99b02f1be0bfb8f79d3e85c271492bb (patch) | |
tree | 95a8a232ab1608d80ecf13c961584fdba44094e1 /desktop/win32 | |
parent | aedaee97a7e4ae9b0c00163c5767ae6ebc937ead (diff) |
drmemory: fix small leak
Change-Id: Ib7f6beb52dc832ee570e21ac5ab65d25946b622f
Reviewed-on: https://gerrit.libreoffice.org/43597
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'desktop/win32')
-rw-r--r-- | desktop/win32/source/officeloader/officeloader.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |