From 94ab00036611a30137383465453cdb20105d42c3 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 26 Feb 2007 13:58:18 +0000 Subject: Fix a refleak in the MAKE_FUNCTION opcode in ceval.c. --- Python/ceval.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Python/ceval.c b/Python/ceval.c index 5ceb743..b119e15 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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); -- cgit v0.12