diff options
| author | Stefan Krah <skrah@bytereef.org> | 2012-08-20 17:19:50 +0200 |
|---|---|---|
| committer | Stefan Krah <skrah@bytereef.org> | 2012-08-20 17:19:50 +0200 |
| commit | 40c8f92f7f7cf1131813bd80c4fd4bcbf7108d6a (patch) | |
| tree | 1652a2ffd2fb717ea6699c129dde8a83ae81488e /Python/bltinmodule.c | |
| parent | 85037818c8f7c8b2172f310bfcd3cfde23bf4e8a (diff) | |
| download | cpython-40c8f92f7f7cf1131813bd80c4fd4bcbf7108d6a.tar.gz | |
Issue #15741: Fix potential NULL dereference. Found by Coverity.
Diffstat (limited to 'Python/bltinmodule.c')
| -rw-r--r-- | Python/bltinmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 0e904909d1..b85e37bc29 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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); |
