summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorEddie Elizondo <eelizondo@fb.com>2019-11-26 03:07:37 (GMT)
committerBenjamin Peterson <benjamin@python.org>2019-11-26 03:07:37 (GMT)
commite4db1f05e9a5828f6b287f99067362fa0e5732e8 (patch)
treec96326933f50a21837bc910c57e6640c6607c099 /Modules
parentf8a6316778faff3991144c3aec4fa92d7b30a72b (diff)
downloadcpython-e4db1f05e9a5828f6b287f99067362fa0e5732e8.zip
cpython-e4db1f05e9a5828f6b287f99067362fa0e5732e8.tar.gz
cpython-e4db1f05e9a5828f6b287f99067362fa0e5732e8.tar.bz2
closes bpo-38803: Fix leak in posixmodule. (GH-17373)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index f738630..8985471 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -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;