diff options
author | Wilfried Goesgens <willi@arangodb.com> | 2021-10-02 11:31:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-02 11:31:09 +0200 |
commit | 53a6c03e36db43d70b3b4e18abe7b81eaab235ce (patch) | |
tree | f84cc1334666c107f9d22f84670e2f7d90c3979d | |
parent | 2fabe4714ef77c6b6152293b861fd9e55be06406 (diff) | |
download | psutil-53a6c03e36db43d70b3b4e18abe7b81eaab235ce.tar.gz |
[Windows] fix service handle leak in start service (#1990)
Signed-off-by: Wilfried Goesgens <willi@arangodb.com>
-rw-r--r-- | psutil/arch/windows/services.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/psutil/arch/windows/services.c b/psutil/arch/windows/services.c index a91cb8f7..fa3e646e 100644 --- a/psutil/arch/windows/services.c +++ b/psutil/arch/windows/services.c @@ -433,6 +433,7 @@ psutil_winservice_start(PyObject *self, PyObject *args) { goto error; } + CloseServiceHandle(hService); Py_RETURN_NONE; error: |