diff options
author | Georg Brandl <georg@python.org> | 2007-02-26 13:58:18 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-02-26 13:58:18 (GMT) |
commit | 94ab00036611a30137383465453cdb20105d42c3 (patch) | |
tree | 24c79761f905bd3abd90e7afe6537804d4238abe /Python | |
parent | 6ce7d1ed55b579c03334d8ef7a69102484d02ff1 (diff) | |
download | cpython-94ab00036611a30137383465453cdb20105d42c3.zip cpython-94ab00036611a30137383465453cdb20105d42c3.tar.gz cpython-94ab00036611a30137383465453cdb20105d42c3.tar.bz2 |
Fix a refleak in the MAKE_FUNCTION opcode in ceval.c.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |