diff --git a/libxslt/transform.c b/libxslt/transform.c index 57f05bf7..2d8fd7f9 100644 --- a/libxslt/transform.c +++ b/libxslt/transform.c @@ -637,7 +637,6 @@ xsltNewTransformContext(xsltStylesheetPtr style, xmlDocPtr doc) { cur->prof = 0; cur->style = style; - xmlXPathInit(); cur->xpathCtxt = xmlXPathNewContext(doc); if (cur->xpathCtxt == NULL) { xsltTransformError(NULL, NULL, (xmlNodePtr) doc, diff --git a/python/libxslt.c b/python/libxslt.c index 685e49d1..353939e3 100644 --- a/python/libxslt.c +++ b/python/libxslt.c @@ -1279,7 +1279,6 @@ void initlibxsltmod(void) { * Specific XSLT initializations */ libxslt_xsltErrorInitialize(); - xmlInitMemory(); xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS; xmlDefaultSAXHandler.cdataBlock = NULL; /* diff --git a/tests/fuzz/fuzz.c b/tests/fuzz/fuzz.c index 780c2d41..cf1e2383 100644 --- a/tests/fuzz/fuzz.c +++ b/tests/fuzz/fuzz.c @@ -53,7 +53,6 @@ static void xsltFuzzInit(void) { /* Init libxml2, libxslt and libexslt */ xmlInitParser(); - xmlXPathInit(); xsltInit(); exsltRegisterAll(); diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c index eec57bc5..5fd3a290 100644 --- a/xsltproc/xsltproc.c +++ b/xsltproc/xsltproc.c @@ -565,7 +565,6 @@ main(int argc, char **argv) } srand(time(NULL)); - xmlInitMemory(); #if defined(_WIN32) && !defined(__CYGINW__) setmode(fileno(stdout), O_BINARY);