]> granicus.if.org Git - python/commitdiff
Fix a refleak in the MAKE_FUNCTION opcode in ceval.c.
authorGeorg Brandl <georg@python.org>
Mon, 26 Feb 2007 13:58:18 +0000 (13:58 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 26 Feb 2007 13:58:18 +0000 (13:58 +0000)
Python/ceval.c

index 5ceb743a80d1c617d220923358e5de1f4b1ec0a8..b119e157b5e6e0ffff71760c83944c7e92e62c06 100644 (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);