[Expat-discuss] characterData

Gert Cuykens gert.cuykens at gmail.com
Fri Jul 20 16:52:18 CEST 2007


On 7/20/07, Mark Williams <Mark.Williams at techop.co.uk> wrote:
> http://dfo.svn.sourceforge.net/viewvc/dfo/trunk/cgi/xml.c?view=markup
> You also have a memory leak in this code.  You can check for empty
> elements just by checking if page->data == NULL in your end element
> handler.

Thanks i think i see it too, its leaking when i do something like this

<sql></sql>
<sql>statemant1</sql>
<sql>statemant2</sql>

resulting in NULL/DATA/DATA and everything after NULL doesn't get freed.


More information about the Expat-discuss mailing list