Commit a5163365 authored by Philipp Schafft's avatar Philipp Schafft 🦁

do not call xmlCleanupParser() too often, close #1931

svn path=/icecast/trunk/icecast/; revision=18796
parent af068a72
......@@ -281,13 +281,11 @@ int config_parse_file(const char *filename, ice_config_t *configuration)
node = xmlDocGetRootElement(doc);
if (node == NULL) {
xmlFreeDoc(doc);
xmlCleanupParser();
return CONFIG_ENOROOT;
}
if (xmlStrcmp (node->name, XMLSTR("icecast")) != 0) {
xmlFreeDoc(doc);
xmlCleanupParser();
return CONFIG_EBADROOT;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment