1
0
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:
Philipp Schafft 2013-02-23 16:38:23 +00:00
parent af068a72a6
commit a5163365a0

View File

@ -281,13 +281,11 @@ int config_parse_file(const char *filename, ice_config_t *configuration)
node = xmlDocGetRootElement(doc); node = xmlDocGetRootElement(doc);
if (node == NULL) { if (node == NULL) {
xmlFreeDoc(doc); xmlFreeDoc(doc);
xmlCleanupParser();
return CONFIG_ENOROOT; return CONFIG_ENOROOT;
} }
if (xmlStrcmp (node->name, XMLSTR("icecast")) != 0) { if (xmlStrcmp (node->name, XMLSTR("icecast")) != 0) {
xmlFreeDoc(doc); xmlFreeDoc(doc);
xmlCleanupParser();
return CONFIG_EBADROOT; return CONFIG_EBADROOT;
} }