-
-
Couldn't load subscription status.
- Fork 33.3k
Closed
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
Following code should decref key and value if PyTuple_New fails:
Lines 5720 to 5726 in 6481539
| else { | |
| result = PyTuple_New(2); | |
| if (result == NULL) | |
| return NULL; | |
| PyTuple_SET_ITEM(result, 0, key); | |
| PyTuple_SET_ITEM(result, 1, value); | |
| } |
I have PR ready.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error