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

This commit is contained in:
Georg Brandl 2007-02-26 13:58:18 +00:00
parent 6ce7d1ed55
commit 94ab000366

View File

@ -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);