[Lxml-checkins] r33264 - in lxml/trunk: . src/lxml

scoder at codespeak.net scoder at codespeak.net
Fri Oct 13 17:38:50 CEST 2006


Author: scoder
Date: Fri Oct 13 17:38:48 2006
New Revision: 33264

Modified:
   lxml/trunk/CHANGES.txt
   lxml/trunk/src/lxml/proxy.pxi
Log:
memory leak when garbage collecting tailed root elements

Modified: lxml/trunk/CHANGES.txt
==============================================================================
--- lxml/trunk/CHANGES.txt	(original)
+++ lxml/trunk/CHANGES.txt	Fri Oct 13 17:38:48 2006
@@ -15,6 +15,8 @@
 Bugs fixed
 ----------
 
+* Memory leak when garbage collecting tailed root elements
+
 * HTML script/style content was not propagated to .text
 
 * Show text xincluded between text nodes correctly in .text and .tail

Modified: lxml/trunk/src/lxml/proxy.pxi
==============================================================================
--- lxml/trunk/src/lxml/proxy.pxi	(original)
+++ lxml/trunk/src/lxml/proxy.pxi	Fri Oct 13 17:38:48 2006
@@ -104,6 +104,7 @@
     c_top = getDeallocationTop(c_node)
     if c_top is not NULL:
         #print "freeing:", c_top.name
+        _removeText(c_top.next) # tail
         tree.xmlFreeNode(c_top)
 
 cdef xmlNode* getDeallocationTop(xmlNode* c_node):


More information about the lxml-checkins mailing list