closes bpo-38803: Fix leak in posixmodule. (GH-17373)
![](https://secure.gravatar.com/avatar/cc7737cd64a84f1b5c61a160798e97ee.jpg?s=120&d=mm&r=g)
https://github.com/python/cpython/commit/e4db1f05e9a5828f6b287f99067362fa0e5... commit: e4db1f05e9a5828f6b287f99067362fa0e5732e8 branch: master author: Eddie Elizondo <eelizondo@fb.com> committer: Benjamin Peterson <benjamin@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;
participants (1)
-
Benjamin Peterson