[Zope-Checkins] CVS: Releases/Zope/lib/python/AccessControl - cAccessControl.c:1.10

Matthew T. Kromer matt@zope.com
Thu, 4 Oct 2001 15:40:27 -0400


Update of /cvs-repository/Releases/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv8718

Modified Files:
	cAccessControl.c 
Log Message:
Added decrefs to the type class that Extensionclass inref'd, giving the
appearance of a leak, particularly noticible with imPermissionRole objects.


=== Releases/Zope/lib/python/AccessControl/cAccessControl.c 1.9 => 1.10 ===
 
 static void ZopeSecurityPolicy_dealloc(ZopeSecurityPolicy *self) {
+
+	Py_DECREF(self->ob_type);	/* Extensionclass init incref'd */
+
 	PyMem_DEL(self);  
 }
 
@@ -1315,6 +1318,8 @@
 
 	Py_XDECREF(self->__roles__);
 
+	Py_DECREF(self->ob_type);	/* Extensionclass init incref'd */
+
 	PyMem_DEL(self);  
 }
 
@@ -1678,6 +1683,8 @@
 
 	Py_XDECREF(self->_v);
 	self->_v = NULL;
+
+	Py_DECREF(self->ob_type);	/* Extensionclass init incref'd */
 
 	PyMem_DEL(self);  
 }