commit | 94ab00036611a30137383465453cdb20105d42c3 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Mon Feb 26 13:58:18 2007 +0000 |
committer | Georg Brandl <georg@python.org> | Mon Feb 26 13:58:18 2007 +0000 |
tree | 24c79761f905bd3abd90e7afe6537804d4238abe | |
parent | 6ce7d1ed55b579c03334d8ef7a69102484d02ff1 [diff] [blame] |
Fix a refleak in the MAKE_FUNCTION opcode in ceval.c.
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 @@ 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);