Skip to content

Commit b55f291

Browse files
ericsnowcurrentlydiegorusso
authored andcommitted
pythongh-76785: Fix a Refleak in _interpreters.new_config() (pythongh-117491)
This is a follow-up to pythongh-117170 and pythongh-117485.
1 parent 752aff5 commit b55f291

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)