Re: characterData

"Gert Cuykens" <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
On 7/20/07, Mark Williams <[email protected]> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.