[Python-3000-checkins] r53937 - python/branches/p3yk/Python/ceval.c

georg.brandl python-3000-checkins at python.org
Mon Feb 26 14:58:22 CET 2007


Author: georg.brandl
Date: Mon Feb 26 14:58:18 2007
New Revision: 53937

Modified:
   python/branches/p3yk/Python/ceval.c
Log:
Fix a refleak in the MAKE_FUNCTION opcode in ceval.c.



Modified: python/branches/p3yk/Python/ceval.c
==============================================================================
--- python/branches/p3yk/Python/ceval.c	(original)
+++ python/branches/p3yk/Python/ceval.c	Mon Feb 26 14:58:18 2007
@@ -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);


More information about the Python-3000-checkins mailing list