commit | 36e6310e39c23a8082e270a809e3f0851910eec5 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Tue Apr 01 08:08:09 2008 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Tue Apr 01 08:08:09 2008 +0000 |
tree | 886bd7855263284dffe1d6307e1b82ac5398740f | |
parent | f7276c9b0e06a920ae917441b2f3d2e113d89612 [diff] [blame] |
Fix refleak with nested classes. Fix originally by Amaury in r62015.
diff --git a/Python/compile.c b/Python/compile.c index 9ce8ac3..94a2715 100644 --- a/Python/compile.c +++ b/Python/compile.c
@@ -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;