Skip to content

Commit

Permalink
#1064 / netbsd: swap_memory() may segfault as it does not in case of …
Browse files Browse the repository at this point in the history
…error
  • Loading branch information
giampaolo committed May 13, 2017
1 parent 0eeebc2 commit 137e7ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
- 1047_: [Windows] Process username(): memory leak in case exception is thrown.
- 1050_: [Windows] Process.memory_maps memory() leaks memory.
- 1063_: [NetBSD] net_connections() may list incorrect sockets.
- 1064_: [NetBSD] swap_memory() may segfault in case of error.

*2017-04-10*

Expand Down
1 change: 1 addition & 0 deletions psutil/arch/bsd/netbsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ psutil_swap_mem(PyObject *self, PyObject *args) {

error:
free(swdev);
return NULL;
}


Expand Down

0 comments on commit 137e7ed

Please sign in to comment.