Skip to content

Commit

Permalink
pythongh-81057: Fix a Reference Leak in the posix Module (pythongh-10…
Browse files Browse the repository at this point in the history
…0140)

The leak was introduced in pythongh-100082.

python#81057
  • Loading branch information
ericsnowcurrently authored Dec 9, 2022
1 parent 8d0bd93 commit 7a0f3c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2242,6 +2242,7 @@ statresult_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
return NULL;
}
_posixstate *state = get_posix_state(mod);
Py_DECREF(mod);
if (state == NULL) {
return NULL;
}
Expand Down

0 comments on commit 7a0f3c1

Please sign in to comment.