mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-08-05 23:35:48 +03:00
tried to fix #102800 for good. Reenabled memory debug checking which got
* xsltproc/xsltproc.c: tried to fix #102800 for good. Reenabled memory debug checking which got deactivated at some point ?!? * libexslt/date.c libxslt/attributes.c: fixing some memory leaks * libxslt/xsltutils.c: very small change on HTML indentation handling Daniel
This commit is contained in:
@@ -547,7 +547,13 @@ main(int argc, char **argv)
|
||||
(!strcmp(argv[i], "-output")) ||
|
||||
(!strcmp(argv[i], "--output"))) {
|
||||
i++;
|
||||
#if defined(WIN32)
|
||||
output = xmlNormalizeWindowsPath(argv[i]);
|
||||
if (output == NULL)
|
||||
output = xmlStrdup(argv[i]);
|
||||
#else
|
||||
output = argv[i];
|
||||
#endif
|
||||
} else if ((!strcmp(argv[i], "-V")) ||
|
||||
(!strcmp(argv[i], "-version")) ||
|
||||
(!strcmp(argv[i], "--version"))) {
|
||||
@@ -815,17 +821,19 @@ main(int argc, char **argv)
|
||||
xsltProcess(doc, cur, argv[i]);
|
||||
}
|
||||
}
|
||||
done:
|
||||
if (cur != NULL)
|
||||
xsltFreeStylesheet(cur);
|
||||
for (i = 0;i < nbstrparams;i++)
|
||||
xmlFree(strparams[i]);
|
||||
done:
|
||||
xsltCleanupGlobals();
|
||||
xmlCleanupParser();
|
||||
#if 0
|
||||
xmlMemoryDump();
|
||||
#if defined(WIN32)
|
||||
if (output != NULL)
|
||||
xmlFree(output);
|
||||
#endif
|
||||
xsltFreeSecurityPrefs(sec);
|
||||
xsltCleanupGlobals();
|
||||
xmlCleanupParser();
|
||||
xmlMemoryDump();
|
||||
return(errorno);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user