* libxslt/pattern.c: applied patch from Mark Vakoc
Daniel
+Wed Apr 10 20:35:54 CEST 2002 Daniel Veillard <daniel@veillard.com>
+
+ * libxslt/pattern.c: applied patch from Mark Vakoc
+
Fri Mar 29 18:28:23 CET 2002 Daniel Veillard <daniel@veillard.com>
* tests/docs/Makefile.am tests/docs/bug-81.xml
(void *) doc;
XSLT_RUNTIME_EXTRA_FREE(ctxt, select->lenExtra) =
(xmlFreeFunc) xmlXPathFreeObject;
- }
+ } else
+ list = newlist;
}
if ((list->nodesetval == NULL) ||
- (list->nodesetval->nodeNr <= 0))
+ (list->nodesetval->nodeNr <= 0)) {
+ if (nocache == 1)
+ xmlXPathFreeObject(list);
return(0);
+ }
/* TODO: store the index and use it for the scan */
if (index == 0) {
for (j = 0;j < list->nodesetval->nodeNr;j++) {