From: <ar...@co...> - 2006-10-01 10:25:56
|
Author: arigo Date: Sun Oct 1 12:26:19 2006 New Revision: 32782 Modified: psyco/dist/c/Python/pycompiler.c Log: Oups! A non-matched ENTER/LEAVE pair. Modified: psyco/dist/c/Python/pycompiler.c ============================================================================== --- psyco/dist/c/Python/pycompiler.c (original) +++ psyco/dist/c/Python/pycompiler.c Sun Oct 1 12:26:19 2006 @@ -1104,12 +1104,12 @@ builtins = PyDict_GetItem((PyObject*) globals, s_builtin_object); if (builtins) { if (PyDict_Check(builtins)) - return builtins; + goto done; if (PyModule_Check(builtins)) { builtins = PyModule_GetDict(builtins); if (builtins) { psyco_assert(PyDict_Check(builtins)); - return builtins; + goto done; } } } @@ -1122,8 +1122,10 @@ "None", Py_None) < 0) OUT_OF_MEMORY(); } + builtins = minimal_builtins; + done: RECLIMIT_SAFE_LEAVE(); - return minimal_builtins; + return builtins; } |