summaryrefslogtreecommitdiff
path: root/comphelper/source/windows/windows_process.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/windows/windows_process.cxx')
-rw-r--r--comphelper/source/windows/windows_process.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/windows/windows_process.cxx b/comphelper/source/windows/windows_process.cxx
index c58a0d52d7f4..528fb6b1aaf0 100644
--- a/comphelper/source/windows/windows_process.cxx
+++ b/comphelper/source/windows/windows_process.cxx
@@ -254,7 +254,7 @@ WinLaunchChild(const wchar_t *exePath,
nullptr);
wprintf(L"Error restarting: %s\n", lpMsgBuf ? lpMsgBuf : L"(null)");
if (lpMsgBuf)
- LocalFree(lpMsgBuf);
+ HeapFree(GetProcessHeap(), 0, lpMsgBuf);
}
free(cl);