summaryrefslogtreecommitdiff
path: root/libexslt
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-03-16 22:50:56 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-03-16 22:50:56 +0000
commit0503357eba2199d1cad0d6fe209d141d97d1c9ee (patch)
tree831ef7ccde20fb926da66c15a304ba4be51cfea5 /libexslt
parent398d93b837e2b970ccc9f0abf6a8eab646b6b6c3 (diff)
downloadlibxslt-0503357eba2199d1cad0d6fe209d141d97d1c9ee.tar.gz
libxslt-0503357eba2199d1cad0d6fe209d141d97d1c9ee.tar.bz2
libxslt-0503357eba2199d1cad0d6fe209d141d97d1c9ee.zip
chaing result tree values which may be deallocated and must not be kept in
* libexslt/common.c libxslt/pattern.c libxslt/transform.c libxslt/variables.c: chaing result tree values which may be deallocated and must not be kept in the template pattern lookup cache. Thanks to Valgrin to allow finding the real problem in bug #74857 Daniel
Diffstat (limited to 'libexslt')
-rw-r--r--libexslt/common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libexslt/common.c b/libexslt/common.c
index fbc3787b..e759a28d 100644
--- a/libexslt/common.c
+++ b/libexslt/common.c
@@ -37,8 +37,7 @@ exsltNodeSetFunction (xmlXPathParserContextPtr ctxt, int nargs) {
}
strval = xmlXPathPopString (ctxt);
- retNode = xmlNewDocText (xsltXPathGetTransformContext(ctxt)->output,
- strval);
+ retNode = xmlNewDocText (NULL, strval);
ret = xmlXPathNewValueTree (retNode);
ret->type = XPATH_NODESET;