After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 150082 - Memory Leak in DomParser
Memory Leak in DomParser
Status: RESOLVED FIXED
Product: libxml++
Classification: Bindings
Component: DOM Parser
unspecified
Other Linux
: Normal critical
: ---
Assigned To: Christophe de Vienne
Christophe de Vienne
Depends on:
Blocks:
 
 
Reported: 2004-08-13 20:58 UTC by Christophe de Vienne
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christophe de Vienne 2004-08-13 20:58:54 UTC
broken.xml:  
<?xml version="1.0" encoding="UTF-8"?>  
<!DOCTYPE data SYSTEM "data.dtd">  
<data>  
  <user>admin & test</user>  
</data>  
  
testcase.cpp:  
#include <libxml++/libxml++.h>  
  
int main(void)  
{  
    while (1) {  
        try {  
            xmlpp::DomParser parser;  
            parser.set_validate(false);  
            parser.parse_file("broken.xml");  
        } catch(...) {  
        }  
    }  
  
    return 0;  
}
Comment 1 Christophe de Vienne 2004-08-13 21:00:15 UTC
This issue has been initialy reported by Thomas Jarosch in bug #132014, but 
since the issue was not related, I created a issue. 
 
Comment 2 Christophe de Vienne 2004-08-13 21:02:04 UTC
The underlying document was not freed if an error occured.