diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2004-01-13 20:42:02 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2004-01-13 20:42:02 +0000 |
commit | 87247e87408561aee625b2e800ea3c13211af897 (patch) | |
tree | 70451191c66ceb9e1807fd888a6d901b341d1c1a /doc/examples | |
parent | c82c57e69cedae457ecbfe8028bd9ed2c65b2f46 (diff) | |
download | android_external_libxml2-87247e87408561aee625b2e800ea3c13211af897.tar.gz android_external_libxml2-87247e87408561aee625b2e800ea3c13211af897.tar.bz2 android_external_libxml2-87247e87408561aee625b2e800ea3c13211af897.zip |
applied patch from Mark Vadoc to not use SAX1 unless necessary. Daniel
* HTMLparser.c relaxng.c testRelax.c testSchemas.c: applied
patch from Mark Vadoc to not use SAX1 unless necessary.
Daniel
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/xpath1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/xpath1.c b/doc/examples/xpath1.c index 8bc10fcc..f6e939bb 100644 --- a/doc/examples/xpath1.c +++ b/doc/examples/xpath1.c @@ -162,7 +162,7 @@ register_namespaces(xmlXPathContextPtr xpathCtx, const xmlChar* nsList) { next = (xmlChar*)xmlStrchr(next, '='); if(next == NULL) { fprintf(stderr,"Error: invalid namespaces list format\n"); - free(nsListDup); + xmlFree(nsListDup); return(-1); } *(next++) = '\0'; @@ -177,12 +177,12 @@ register_namespaces(xmlXPathContextPtr xpathCtx, const xmlChar* nsList) { /* do register namespace */ if(xmlXPathRegisterNs(xpathCtx, prefix, href) != 0) { fprintf(stderr,"Error: unable to register NS with prefix=\"%s\" and href=\"%s\"\n", prefix, href); - free(nsListDup); + xmlFree(nsListDup); return(-1); } } - free(nsListDup); + xmlFree(nsListDup); return(0); } |