Re: characterData
"Gert Cuykens" <[email protected]>
| Newsgroups | gmane.text.xml.expat.general |
|---|---|
| Message-ID | <[email protected]> |
On 7/20/07, Gert Cuykens <[email protected]> wrote: > 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. > Actually come to think of it there are a koppel of leaks more :)