Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34.3k
Open
Description
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 thedict allocated at line 505. ThePyDict_SetItemString failure path correctly uses goto fail.
CPython versions tested on:
CPython main branch