Skip to content

Commit 432a23d

Browse files
eduardo-elizondoshihai1991
authored andcommitted
closes bpo-38803: Fix leak in posixmodule. (pythonGH-17373)
1 parent 9b3571a commit 432a23d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/posixmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7589,6 +7589,7 @@ wait_helper(pid_t pid, int status, struct rusage *ru)
75897589

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

0 commit comments

Comments
 (0)