Re: [xml] unregister XPath namespace prefix crash (python bindings)

On Tue, Oct 28, 2003 at 10:43:43PM -0500, Anthony Carrico wrote:
That crash happens in "context.xpathFreeContext()".

I looked at the libxml2 source code a little bit. It seems like maybe
the code xmlHashUpdateEntry doesn't delete the hashtable entry if the
ns_uri is NULL, so I wonder if something like the following patch
would be appropriate. I haven't tested this patch yet; I wanted to
submit the problem with the wisdom of this list to see if I'm going in
the right direction.

  Yeah, that sounds right. I changed that in CVS. I also tried to 
add more checks in the hash module to avoid the problem in a more general



Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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