closes bpo-38803: Fix leak in posixmodule. (GH-17373)
This commit is contained in:
parent
f8a6316778
commit
e4db1f05e9
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue