[XML-SIG] Pyexpat memory leak

Kamel Hamard (LMC) kamel.hamard at ericsson.com
Sun Jul 20 13:26:52 EDT 2003

Hi Jeremy,

I think I found what is causing the leak.

After adding a small method using Evaluate method, I observe a leak. I my application I'm using this method to find element in XML dom. Take a look at the new version of my script and you will see a leak.

Its why I dont have any leak in python 2.2.2 but when I use the method the problem reapear again.

Here is the script



-----Original Message-----
From: Jeremy Kloth [mailto:jeremy.kloth at fourthought.com]
Sent: Friday, July 18, 2003 7:38 PM
To: xml-sig at python.org
Subject: [XML-SIG] Pyexpat memory leak

I've checked in fixes for pyexpat which solve a refcount issue when passing
an instance to ParseFile.  The readmethod wasn't being decref'ed before exit
of that function.

Jeremy Kloth
Fourthought, Inc.

XML-SIG maillist  -  XML-SIG at python.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4suite.py
Type: application/octet-stream
Size: 4351 bytes
Desc: not available
Url : http://mail.python.org/pipermail/xml-sig/attachments/20030720/96420ccb/4suite.obj

More information about the XML-SIG mailing list