Skip to content

Commit

Permalink
Fix a reference leak in the posix module.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsnowcurrently committed Dec 9, 2022
1 parent a29a7b9 commit 09f4a95
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 09f4a95

Please sign in to comment.