<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/simplexml/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/simplexml/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 20 Nov 2010 22:59:04 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/simplexml/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>Memory leak in parser-&gt;vbNextToken</title><link>https://sourceforge.net/p/simplexml/patches/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;createSimpleXmlParser() allocates a buffer in parser-&amp;gt;vbNextToken by calling&lt;br /&gt;
parser-&amp;gt;vbNextToken= createSimpleXmlValueBuffer(512);&lt;br /&gt;
which in turn allocates the buffer by allocating the 512 bytes into vb-&amp;gt;sBuffer.&lt;br /&gt;
However, when destroySimpleXmlParser() is releasing resources, it merely calls free(parser-&amp;gt;vbNextToken), which leaks the actual buffer allocated in vb-&amp;gt;sBuffer.&lt;br /&gt;
A cleanup function, destroySimpleXmlValueBuffer() is already provided, but not used. This patch will replace the call to free() with a call to destroySimpleXmlValueBuffer() which will clean up both the buffer and the container object.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dhiren Sham</dc:creator><pubDate>Sat, 20 Nov 2010 22:59:04 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net5d3096725cc69479e823cf06a8e6c191a93669cc</guid></item></channel></rss>