[Expat-discuss] characterData
Gert Cuykens
gert.cuykens at gmail.com
Fri Jul 20 18:20:02 CEST 2007
On 7/20/07, Gert Cuykens <gert.cuykens at gmail.com> wrote:
> On 7/20/07, Gert Cuykens <gert.cuykens at gmail.com> wrote:
> > 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.
> >
>
> Actually come to think of it there are a koppel of leaks more :)
>
This should cover all memory leaks i think
http://dfo.svn.sourceforge.net/viewvc/dfo/trunk/cgi/xml.c?view=markup
More information about the Expat-discuss
mailing list