Skip to content

Commit

Permalink
giampaolo#870: CloseHandle bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
igeorgievsky committed Aug 10, 2016
1 parent deeada6 commit 7c36a63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions psutil/arch/windows/process_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,8 @@ static int psutil_get_process_data(long pid,
goto error;
}

CloseHandle(hProcess);

*pdata = buffer;
*psize = size;

Expand Down

0 comments on commit 7c36a63

Please sign in to comment.