Skip to content

Commit 09f4a95

Browse files
Fix a reference leak in the posix module.
1 parent a29a7b9 commit 09f4a95

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: Modules/posixmodule.c

+1
Original file line numberDiff line numberDiff line change
@@ -2242,6 +2242,7 @@ statresult_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
22422242
return NULL;
22432243
}
22442244
_posixstate *state = get_posix_state(mod);
2245+
Py_DECREF(mod);
22452246
if (state == NULL) {
22462247
return NULL;
22472248
}

0 commit comments

Comments
 (0)