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
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.
Bug report
Bug description:
Parent: #146102
SET_ITEM macro at line 510-521: when the expression (e.g.,
PyLong_FromLong)returns NULL, return NULL at line 514 leaks thedictallocated at line 505. ThePyDict_SetItemStringfailure path correctly uses goto fail.CPython versions tested on:
CPython main branch
Linked PRs
SET_ITEMmacro leaks dict on expression failure #146246