mirror of
https://github.com/python/cpython.git
synced 2026-04-17 01:10:46 +00:00
gh-146244: Fix initconfig.c SET_ITEM macro leaks dict on expression failure (GH-146246)
This commit is contained in:
parent
4447f23f40
commit
9343518c6f
1 changed files with 1 additions and 1 deletions
|
|
@ -511,7 +511,7 @@ _Py_COMP_DIAG_IGNORE_DEPR_DECLS
|
|||
do { \
|
||||
obj = (EXPR); \
|
||||
if (obj == NULL) { \
|
||||
return NULL; \
|
||||
goto fail; \
|
||||
} \
|
||||
int res = PyDict_SetItemString(dict, (KEY), obj); \
|
||||
Py_DECREF(obj); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue