diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-01-14 04:06:52 -0800 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2020-01-14 04:06:52 -0800 |
commit | 346999344bf94084e9bed09457abe18260d3bfd1 (patch) | |
tree | 0c69d89894ff95681fcf3b1c160758e9407e5df7 /psutil/_psutil_windows.c | |
parent | d9497930fc7a77e17a5aace07592c0b1d1701ba9 (diff) | |
download | psutil-346999344bf94084e9bed09457abe18260d3bfd1.tar.gz |
check MALLOC_ZERO ret code
Diffstat (limited to 'psutil/_psutil_windows.c')
-rw-r--r-- | psutil/_psutil_windows.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/psutil/_psutil_windows.c b/psutil/_psutil_windows.c index d19e32e9..3bd07f68 100644 --- a/psutil/_psutil_windows.c +++ b/psutil/_psutil_windows.c @@ -871,12 +871,6 @@ psutil_proc_open_files(PyObject *self, PyObject *args) { return NULL; py_retlist = psutil_get_open_files(pid, processHandle); - if (py_retlist == NULL) { - PyErr_SetFromWindowsErr(0); - CloseHandle(processHandle); - return NULL; - } - CloseHandle(processHandle); return py_retlist; } |