Skip to content

Commit

Permalink
gh-76785: Fix a Refleak in _interpreters.new_config() (gh-117491)
Browse files Browse the repository at this point in the history
This is a follow-up to gh-117170 and gh-117485.
  • Loading branch information
ericsnowcurrently authored Apr 3, 2024
1 parent 857d315 commit 65524ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Python/interpconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 65524ab

Please sign in to comment.