Re: [xslt] xsltParseStylesheetFile segmentation fault



On 8/5/2013 11:48, Mauricio Gonzalez wrote:
    xmlFreeDoc(res);
xmlFreeDoc(doc);
    xmlCleanupParser();
    xsltCleanupGlobals();
    xmlMemoryDump();

You shouldn't call xmlCleanupParser or xsltCleanupGlobals when you need to do further xml processing. They don't need to be called at all, unless you're troubled by the fixed amount of global information still allocated when the program exits. xmlMemoryDump is for dumping debug info, and you don't need to call it either.

Jason



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