mirror of https://github.com/python/cpython
gh-76785: Fix a Refleak in _interpreters.new_config() (gh-117491)
This is a follow-up to gh-117170 and gh-117485.
This commit is contained in:
parent
857d3151c9
commit
65524ab388
|
@ -210,6 +210,8 @@ interp_config_from_dict(PyObject *origdict, PyInterpreterConfig *config,
|
|||
"config dict has %d extra items (%R)", unused, dict);
|
||||
goto error;
|
||||
}
|
||||
|
||||
Py_DECREF(dict);
|
||||
return 0;
|
||||
|
||||
error:
|
||||
|
|
Loading…
Reference in New Issue