Skip to content

Commit

Permalink
closes bpo-38803: Fix leak in posixmodule. (pythonGH-17373)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardo-elizondo authored and shihai1991 committed Jan 31, 2020
1 parent 9b3571a commit 432a23d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -7589,6 +7589,7 @@ wait_helper(pid_t pid, int status, struct rusage *ru)

/* XXX(nnorwitz): Copied (w/mods) from resource.c, there should be only one. */
result = PyStructSequence_New((PyTypeObject*) struct_rusage);
Py_DECREF(struct_rusage);
if (!result)
return NULL;

Expand Down

0 comments on commit 432a23d

Please sign in to comment.