diff -r 0e5485634817 Objects/typeobject.c --- a/Objects/typeobject.c Tue Jul 05 22:00:25 2011 +0200 +++ b/Objects/typeobject.c Wed Jul 06 02:30:29 2011 +0200 @@ -967,6 +967,8 @@ assert(basedealloc); basedealloc(self); + PyType_Modified(type); + /* Can't reference self beyond this point */ Py_DECREF(type);