#106411 adds the `_PyCompile_CleanDoc` function. there's a call to `PyMem_Malloc`, but we don't check if it returns `NULL` value: https://github.com/python/cpython/blob/009e8f084c4cbb1f43d40b24b7f71fb189bbe36b/Python/compile.c#L8055-L8063 Is there a need to check for a `NULL` value? If so, I can send a PR. <!-- gh-linked-prs --> ### Linked PRs * gh-106921 <!-- /gh-linked-prs -->