applied a patch from Nathan Myers about an erroneous free in case of error
authorDaniel Veillard <veillard@src.gnome.org>
Mon, 12 Aug 2002 21:14:06 +0000 (21:14 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Mon, 12 Aug 2002 21:14:06 +0000 (21:14 +0000)
* libxslt/transform.c: applied a patch from Nathan Myers about
  an erroneous free in case of error
Daniel

ChangeLog
libxslt/transform.c

index f6a6f93..0c958a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Aug 12 23:12:59 CEST 2002 Daniel Veillard <daniel@veillard.com>
+
+       * libxslt/transform.c: applied a patch from Nathan Myers about
+         an erroneous free in case of error
+
 Thu Aug  1 14:29:11 CEST 2002 Daniel Veillard <daniel@veillard.com>
 
        * configure.in: upon suggestion of Marc-Andre Lemburg, make 
index 9bae626..116c23f 100644 (file)
@@ -3663,7 +3663,7 @@ xsltApplyStylesheetInternal(xsltStylesheetPtr style, xmlDocPtr doc,
     if (profile != NULL) {
         xsltSaveProfiling(ctxt, profile);
     }
-    if (userCtxt == NULL)
+    if ((ctxt != NULL) && (userCtxt == NULL))
        xsltFreeTransformContext(ctxt);
 
     return (res);