mirror of
https://github.com/python/cpython.git
synced 2024-11-26 03:14:27 +08:00
Fix a refleak in the MAKE_FUNCTION opcode in ceval.c.
This commit is contained in:
parent
6ce7d1ed55
commit
94ab000366
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user