Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment:

The attached patch works, but can be simplified by using a stack variable:

Index: pythonrun.c
===================================================================
--- pythonrun.c (revision 66902)
+++ pythonrun.c (working copy)
@@ -1284,7 +1290,13 @@

 {
        PyObject *ret = NULL;
        mod_ty mod;
-       PyArena *arena = PyArena_New();
+       PyCompilerFlags localflags;
+       PyArena *arena;
+
+       if (flags == NULL)
+               flags = &localflags;
+
+       arena = PyArena_New();
        if (arena == NULL)
                return NULL;

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4225>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to