mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
closes bpo-38803: Fix leak in posixmodule. (GH-17373)
This commit is contained in:
parent
f8a6316778
commit
e4db1f05e9
1 changed files with 1 additions and 0 deletions
|
|
@ -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. */
|
/* XXX(nnorwitz): Copied (w/mods) from resource.c, there should be only one. */
|
||||||
result = PyStructSequence_New((PyTypeObject*) struct_rusage);
|
result = PyStructSequence_New((PyTypeObject*) struct_rusage);
|
||||||
|
Py_DECREF(struct_rusage);
|
||||||
if (!result)
|
if (!result)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue