summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-08-20 15:20:46 (GMT)
committerStefan Krah <skrah@bytereef.org>2012-08-20 15:20:46 (GMT)
commit66d1eb23d42551f510f27f4610d74442579e98d8 (patch)
tree2c16a7a7ba86b49cafc4a62f9519651ab7a47d46
parent28a2ad556a612af7bbc9bd2d23f00983025db3b6 (diff)
parent07795df68345a481fbd72c8cce452666000cbadd (diff)
downloadcpython-66d1eb23d42551f510f27f4610d74442579e98d8.zip
cpython-66d1eb23d42551f510f27f4610d74442579e98d8.tar.gz
cpython-66d1eb23d42551f510f27f4610d74442579e98d8.tar.bz2
Merge 3.2.
-rw-r--r--Python/bltinmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 4a98b03..0e6e6ff 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -639,6 +639,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);