#106411 adds the _PyCompile_CleanDoc function.
there's a call to PyMem_Malloc, but we don't check if it returns NULL value:
|
char *buff = PyMem_Malloc(doc_size); |
|
char *w = buff; |
|
|
|
while (p < pend) { |
|
int ch = *w++ = *p++; |
|
if (ch == '\n') { |
|
break; |
|
} |
|
} |
Is there a need to check for a NULL value?
If so, I can send a PR.
Linked PRs