[xml] PATCH for libxslt/transform.c



In libxslt 1.0.18, if the transformation fails,
xsltApplyStylesheetInternal frees memory it shouldn't.
Here's the fix:

--- libxslt/libxslt/transform.c.orig    2002/08/04 02:01:26     1.1
+++ libxslt/libxslt/transform.c 2002/08/12 19:55:50
@@ -3630,7 +3630,7 @@
 error:
     if (res != NULL)
         xmlFreeDoc(res);
-    if (ctxt != NULL)
+    if (ctxt != NULL && userCtxt == NULL)
         xsltFreeTransformContext(ctxt);
     return (NULL);
 }




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