closes bpo-38803: Fix leak in posixmodule. (GH-17373)

This commit is contained in:
Eddie Elizondo 2019-11-25 19:07:37 -08:00 committed by Benjamin Peterson
parent f8a6316778
commit e4db1f05e9
1 changed files with 1 additions and 0 deletions

View File

@ -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;