Browse Source

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

pull/14773/head
Eddie Elizondo 7 years ago
committed by Benjamin Peterson
parent
commit
e4db1f05e9
  1. 1
      Modules/posixmodule.c

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

Loading…
Cancel
Save