mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
do not call xmlCleanupParser() too often, close #1931
svn path=/icecast/trunk/icecast/; revision=18796
This commit is contained in:
parent
af068a72a6
commit
a5163365a0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user