# Bug report ### Bug description: Following code should decref `key` and `value` if `PyTuple_New` fails: https://github.com/python/cpython/blob/6481539a6d9692ddf13ab01baad1bc9133409413/Objects/dictobject.c#L5720-L5726 I have PR ready. ### CPython versions tested on: CPython main branch ### Operating systems tested on: _No response_ <!-- gh-linked-prs --> ### Linked PRs * gh-140059 * gh-140107 * gh-140108 <!-- /gh-linked-prs -->
Bug report
Bug description:
Following code should decref
keyandvalueifPyTuple_Newfails:cpython/Objects/dictobject.c
Lines 5720 to 5726 in 6481539
I have PR ready.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
PyTuple_Newfails indictiter_iternextitem(GH-140059) #140107PyTuple_Newfails indictiter_iternextitem(GH-140059) #140108