Skip to content

Commit 266a99d

Browse files
authored
Merge pull request giampaolo#871 from xBeAsTx/bugfix_870
giampaolo#870: CloseHandle bugfix
2 parents deeada6 + aa9a62a commit 266a99d

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

CREDITS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,3 +394,7 @@ I: 816
394394
N: Jeremy Humble
395395
W: https://github.com/jhumble
396396
I: 863
397+
398+
N: Ilya Georgievsky
399+
W: https://github.com/xBeAsTx
400+
I: 870

HISTORY.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Bug tracker at https://github.com/giampaolo/psutil/issues
1616
handle unicode service names / descriptions.
1717
- #869: [Windows] Process.wait() may raise TimeoutExpired with wrong timeout
1818
unit (ms instead of sec).
19+
- #870: [Windows] Handle leak inside psutil_get_process_data.
1920

2021

2122
4.3.0 - 2016-06-18

psutil/arch/windows/process_info.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,8 @@ static int psutil_get_process_data(long pid,
665665
goto error;
666666
}
667667

668+
CloseHandle(hProcess);
669+
668670
*pdata = buffer;
669671
*psize = size;
670672

0 commit comments

Comments
 (0)