Commit 07795df6 authored by Stefan Krah's avatar Stefan Krah

Issue #15741: Fix potential NULL dereference. Found by Coverity.

parent db579d7b
......@@ -631,6 +631,8 @@ builtin_compile(PyObject *self, PyObject *args, PyObject *kwds)
mod_ty mod;
arena = PyArena_New();
if (arena == NULL)
goto error;
mod = PyAST_obj2mod(cmd, arena, mode);
if (mod == NULL) {
PyArena_Free(arena);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment