[Zope-Checkins] SVN: Zope/trunk/ - Collector #1807: fixed memory leak in cAccessControl.guarded_getattr()

Andreas Jung andreas at andreas-jung.com
Tue Aug 2 05:36:04 EDT 2005


Log message for revision 37652:
  
        - Collector #1807: fixed memory leak in cAccessControl.guarded_getattr()
  

Changed:
  U   Zope/trunk/doc/CHANGES.txt
  U   Zope/trunk/lib/python/AccessControl/cAccessControl.c

-=-
Modified: Zope/trunk/doc/CHANGES.txt
===================================================================
--- Zope/trunk/doc/CHANGES.txt	2005-08-02 07:50:27 UTC (rev 37651)
+++ Zope/trunk/doc/CHANGES.txt	2005-08-02 09:36:04 UTC (rev 37652)
@@ -53,6 +53,8 @@
 
     Bugs fixed
 
+      - Collector #1807: fixed memory leak in cAccessControl.guarded_getattr()
+
       - Collector #1852: fixed wrong URL construction in webdav.davcmds
 
       - Collector #1844: fixed whitespace handling in the ZMI "Find" tab

Modified: Zope/trunk/lib/python/AccessControl/cAccessControl.c
===================================================================
--- Zope/trunk/lib/python/AccessControl/cAccessControl.c	2005-08-02 07:50:27 UTC (rev 37651)
+++ Zope/trunk/lib/python/AccessControl/cAccessControl.c	2005-08-02 09:36:04 UTC (rev 37652)
@@ -2198,7 +2198,10 @@
 
       t = aq_Acquire(inst, name, aq_validate, validate, 1, NULL, 0);
       if (t == NULL)
+        {
+        Py_DECREF(v);
         return NULL;
+        }
       Py_DECREF(t);
 
       return v;



More information about the Zope-Checkins mailing list