[Python-3000-checkins] r62089 - python/branches/py3k/Python/compile.c
neal.norwitz
python-3000-checkins at python.org
Tue Apr 1 10:08:09 CEST 2008
Author: neal.norwitz
Date: Tue Apr 1 10:08:09 2008
New Revision: 62089
Modified:
python/branches/py3k/Python/compile.c
Log:
Fix refleak with nested classes. Fix originally by Amaury in r62015.
Modified: python/branches/py3k/Python/compile.c
==============================================================================
--- python/branches/py3k/Python/compile.c (original)
+++ python/branches/py3k/Python/compile.c Tue Apr 1 10:08:09 2008
@@ -1551,6 +1551,7 @@
{
/* use the class name for name mangling */
Py_INCREF(s->v.ClassDef.name);
+ Py_XDECREF(c->u->u_private);
c->u->u_private = s->v.ClassDef.name;
/* force it to have one mandatory argument */
c->u->u_argcount = 1;
More information about the Python-3000-checkins
mailing list