1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Fix: Fixed memory leak on legacy config style

Closes: #2473
This commit is contained in:
Philipp Schafft 2023-06-22 10:38:18 +00:00
parent 5cad25a180
commit 5cf8cb9a99

View File

@ -2337,8 +2337,10 @@ static void _parse_authentication(xmlDocPtr doc, xmlNodePtr node,
continue;
if (xmlStrcmp(node->name, XMLSTR("source-password")) == 0) {
if (xmlGetProp(node, XMLSTR("mount"))) {
xmlChar *tmp;
if ((tmp = xmlGetProp(node, XMLSTR("mount")))) {
ICECAST_LOG_ERROR("Mount level source password defined within global <authentication> section.");
xmlFree(tmp);
} else {
if (*source_password)
xmlFree(*source_password);