From: Georg Brandl Date: Mon, 26 Feb 2007 13:58:18 +0000 (+0000) Subject: Fix a refleak in the MAKE_FUNCTION opcode in ceval.c. X-Git-Tag: v3.0a1~1176 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94ab00036611a30137383465453cdb20105d42c3;p=python Fix a refleak in the MAKE_FUNCTION opcode in ceval.c. --- diff --git a/Python/ceval.c b/Python/ceval.c index 5ceb743a80..b119e157b5 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);