mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-81057: Fix a Reference Leak in the posix Module (gh-100140)
The leak was introduced in gh-100082. https://github.com/python/cpython/issues/81057
This commit is contained in:
parent
8d0bd93ae2
commit
7a0f3c1d92
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue