Commit 94ab0003 authored by Georg Brandl's avatar Georg Brandl

Fix a refleak in the MAKE_FUNCTION opcode in ceval.c.

parent 6ce7d1ed
......@@ -2298,6 +2298,8 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
u = POP(); /* kw only arg name */
/* XXX(nnorwitz): check for errors */
PyDict_SetItem(v, u, w);
Py_DECREF(w);
Py_DECREF(u);
}
err = PyFunction_SetKwDefaults(x, v);
Py_DECREF(v);
......
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