Skip to content

Commit

Permalink
#933 (win) fix memory leak in WindowsService.description()
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Oct 28, 2016
1 parent 3c69a51 commit ca8b7f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

- 932_: [NetBSD] net_connections() and Process.connections() may fail without
raising an exception.
- 933_: [Windows] fixed cpu_stats() memory leak.
- 933_: [Windows] memory leak in cpu_stats() and WindowsService.description().


4.4.2
Expand Down
1 change: 1 addition & 0 deletions psutil/arch/windows/services.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ psutil_winservice_query_descr(PyObject *self, PyObject *args) {
goto error;

free(scd);
CloseServiceHandle(hService);
return py_retstr;

error:
Expand Down

0 comments on commit ca8b7f4

Please sign in to comment.