Commit d9c554e0 authored by Stefan Behnel's avatar Stefan Behnel

Merge branch '0.29.x'

parents 1e3c3c95 d8dbd760
......@@ -131,6 +131,15 @@ Other changes
* Support for Python 2.6 was removed.
0.29.9 (2019-05-29)
===================
Bugs fixed
----------
* Fix a crash regression in 0.29.8 when creating code objects fails.
0.29.8 (2019-05-28)
===================
......
......@@ -294,15 +294,17 @@ static PyCodeObject *__Pyx_createFrameCodeObject(const char *funcname, const cha
#if PY_MAJOR_VERSION >= 3
py_code = PyCode_NewEmpty(srcfile, funcname, firstlineno);
// make CPython use a fresh dict for "f_locals" at need (see GH #1836)
py_code->co_flags |= CO_OPTIMIZED | CO_NEWLOCALS;
if (likely(py_code)) {
py_code->co_flags |= CO_OPTIMIZED | CO_NEWLOCALS;
}
#else
PyObject *py_srcfile = 0;
PyObject *py_funcname = 0;
py_funcname = PyString_FromString(funcname);
if (!py_funcname) goto bad;
if (unlikely(!py_funcname)) goto bad;
py_srcfile = PyString_FromString(srcfile);
if (!py_srcfile) goto bad;
if (unlikely(!py_srcfile)) goto bad;
py_code = PyCode_New(
0, /*int argcount,*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment