diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2025-01-08 09:51:25 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2025-01-08 11:37:01 +0100 |
commit | f468593d901b9f4ad8e90b6e101d17e6d490b5ef (patch) | |
tree | 18e32f5fefc6d54297e48f6ee6997542c228a4b0 /sal | |
parent | 9884f7aa793b4bacfd6780db498a2c40e7a134c1 (diff) |
Close handles properly
Change-Id: If8620229d41ae9b6c0a1714967a8bb6d51d3ba0d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179939
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/w32/procimpl.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/osl/w32/procimpl.cxx b/sal/osl/w32/procimpl.cxx index f36a3c90b073..d271c391eed7 100644 --- a/sal/osl/w32/procimpl.cxx +++ b/sal/osl/w32/procimpl.cxx @@ -576,6 +576,8 @@ oslProcessError SAL_CALL osl_executeProcess_WithRedirectedIO( return osl_Process_E_None; } + else + CloseHandle(process_info.hProcess); } /* if an error occurred we have to close the server side pipe ends too */ |