Skip to content

Commit 7a0f3c1

Browse files
gh-81057: Fix a Reference Leak in the posix Module (gh-100140)
The leak was introduced in gh-100082. #81057
1 parent 8d0bd93 commit 7a0f3c1

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)