You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
initconfig.c: SET_ITEM macro leaks dict on expression failure #146244
SET_ITEM macro at line 510-521: when the expression (e.g., PyLong_FromLong) returns NULL, return NULL at line 514 leaks the dict allocated at line 505. The PyDict_SetItemString failure path correctly uses goto fail.
Activity
Wulian233 commentedon Mar 21, 2026
I’m currently unable to add the parent issue #146102 . I would appreciate it if someone could help add it:)
gh-146244: Fix initconfig.c SET_ITEM macro leaks dict on expression f…
pythongh-146244: Fix initconfig.c SET_ITEM macro leaks dict on expres…
pythongh-146244: Fix initconfig.c SET_ITEM macro leaks dict on expres…
[3.13] gh-146244: Fix initconfig.c SET_ITEM macro leaks dict on expre…
[3.14] gh-146244: Fix initconfig.c SET_ITEM macro leaks dict on expre…
pythongh-146244: Fix initconfig.c SET_ITEM macro leaks dict on expres…
pythongh-146244: Fix initconfig.c SET_ITEM macro leaks dict on expres…