This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, benjamin.peterson, georg.brandl
Date 2008-10-29.08:57:28
SpamBayes Score 0.00023705547
Marked as misclassified No
Message-id <1225270651.92.0.987903083491.issue4225@psf.upfronthosting.co.za>
In-reply-to
Content
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;
History
Date User Action Args
2008-10-29 08:57:32amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, georg.brandl, benjamin.peterson
2008-10-29 08:57:31amaury.forgeotdarcsetmessageid: <1225270651.92.0.987903083491.issue4225@psf.upfronthosting.co.za>
2008-10-29 08:57:30amaury.forgeotdarclinkissue4225 messages
2008-10-29 08:57:29amaury.forgeotdarccreate