Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65524ab

Browse files
gh-76785: Fix a Refleak in _interpreters.new_config() (gh-117491)
This is a follow-up to gh-117170 and gh-117485.
1 parent 857d315 commit 65524ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/interpconfig.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ interp_config_from_dict(PyObject *origdict, PyInterpreterConfig *config,
210210
"config dict has %d extra items (%R)", unused, dict);
211211
goto error;
212212
}
213+
214+
Py_DECREF(dict);
213215
return 0;
214216

215217
error:

0 commit comments

Comments
 (0)