[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GSXML test failures

From: Nicola Pero
Subject: Re: GSXML test failures
Date: Thu, 14 Mar 2002 15:48:53 +0000 (GMT)

> The namespace struct is owned by the node which declares it (the fact that
> subnodes of this node belong to this namespace does not affect the memory
> management of the namespace - ie, they don't retain it ... which might be
> considered a memory bug in libxml2 even if it rarely - if ever - will show
> up).  When the <overlay> node is freed, all the namespaces it declares are
> freed.

Just to explain myself better - the thing normally works fine because when
the node is freed, all children (which are the only nodes which could
belong to the namespace) are freed too, so no reference to the namespace

It's not a bug, really, it's just that if you start moving/unlinking nodes
and/or namespaces around the libxml2 code gave me the feeling you can end
up with some broken reference from a node to a namespace declared
elsewhere ... and then this memory release scheme breaks down.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]