diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-12-09 17:18:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 17:18:29 (GMT) |
commit | 7a0f3c1d92ef0768e082ace19d970b0ef12e7346 (patch) | |
tree | 402d2024a6449a273e7e2b5270f206dfa6d28bbf /Modules/posixmodule.c | |
parent | 8d0bd93ae28299f9b2cd11d3dd1a49599b62430a (diff) | |
download | cpython-7a0f3c1d92ef0768e082ace19d970b0ef12e7346.zip cpython-7a0f3c1d92ef0768e082ace19d970b0ef12e7346.tar.gz cpython-7a0f3c1d92ef0768e082ace19d970b0ef12e7346.tar.bz2 |
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
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index f517535..4817973 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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; } |