Bug report
Bug description:
Normally this is not a problem but if _PyMem_FreeDelayed(NULL) is called an (quite!) improbably high number of times in a single thread it can lead to memory exhaustion because the NULL is added to a queue. Fix is just to add a NULL check like _PyObject_XDecRefDelayed().
CPython versions tested on:
3.14
Operating systems tested on:
No response
Linked PRs
Bug report
Bug description:
Normally this is not a problem but if
_PyMem_FreeDelayed(NULL)is called an (quite!) improbably high number of times in a single thread it can lead to memory exhaustion because the NULL is added to a queue. Fix is just to add a NULL check like_PyObject_XDecRefDelayed().CPython versions tested on:
3.14
Operating systems tested on:
No response
Linked PRs
_PyMem_FreeDelayed(gh-131720) #131722