Commit ac87f73d authored by matt@zope.com's avatar matt@zope.com

Checkin fix for Collector 421: cAccessControl storage leak

parent dc4720fa
...@@ -73,6 +73,8 @@ Zope Changes ...@@ -73,6 +73,8 @@ Zope Changes
- Fix bug in ISO_8859_1 splitter which corruped storage on - Fix bug in ISO_8859_1 splitter which corruped storage on
initialization. initialization.
- Collector #421: Storage leak in cAccessControl
Features Added Features Added
- ZCatalog index management ui is now integrated into ZCatalog rather - ZCatalog index management ui is now integrated into ZCatalog rather
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE. DAMAGE.
$Id: cAccessControl.c,v 1.16 2002/04/12 15:21:47 matt Exp $ $Id: cAccessControl.c,v 1.17 2002/07/23 14:08:55 matt Exp $
If you have questions regarding this software, If you have questions regarding this software,
contact: contact:
...@@ -1028,7 +1028,7 @@ static PyObject *ZopeSecurityPolicy_validate(PyObject *self, PyObject *args) { ...@@ -1028,7 +1028,7 @@ static PyObject *ZopeSecurityPolicy_validate(PyObject *self, PyObject *args) {
} }
if (owner != Py_None) { if (owner != Py_None) {
owner = PyObject_GetAttr(owner, allowed_str); ASSIGN(owner,PyObject_GetAttr(owner, allowed_str));
if (owner) if (owner)
ASSIGN(owner, callfunction2(owner, value, roles)); ASSIGN(owner, callfunction2(owner, value, roles));
if (owner == NULL) if (owner == NULL)
...@@ -2097,7 +2097,7 @@ void initcAccessControl(void) { ...@@ -2097,7 +2097,7 @@ void initcAccessControl(void) {
module = Py_InitModule3("cAccessControl", module = Py_InitModule3("cAccessControl",
cAccessControl_methods, cAccessControl_methods,
"$Id: cAccessControl.c,v 1.16 2002/04/12 15:21:47 matt Exp $\n"); "$Id: cAccessControl.c,v 1.17 2002/07/23 14:08:55 matt Exp $\n");
aq_init(); /* For Python <= 2.1.1, aq_init() should be after aq_init(); /* For Python <= 2.1.1, aq_init() should be after
Py_InitModule(). */ Py_InitModule(). */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment