[Python-checkins] closes bpo-38803: Fix leak in posixmodule. (GH-17373)
Benjamin Peterson
webhook-mailer at python.org
Mon Nov 25 22:07:44 EST 2019
https://github.com/python/cpython/commit/e4db1f05e9a5828f6b287f99067362fa0e5732e8
commit: e4db1f05e9a5828f6b287f99067362fa0e5732e8
branch: master
author: Eddie Elizondo <eelizondo at fb.com>
committer: Benjamin Peterson <benjamin at python.org>
date: 2019-11-25T19:07:37-08:00
summary:
closes bpo-38803: Fix leak in posixmodule. (GH-17373)
files:
M Modules/posixmodule.c
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index f7386300c5691..898547113732a 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;
More information about the Python-checkins
mailing list