mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Fix: Fixed memory leak with new prefixmatch="" attribute of <resource>
This commit is contained in:
parent
819dc9c72e
commit
91134b75c0
@ -1956,7 +1956,10 @@ static void _parse_resource(xmlDocPtr doc,
|
|||||||
}
|
}
|
||||||
|
|
||||||
temp = (char *)xmlGetProp(node, XMLSTR("prefixmatch"));
|
temp = (char *)xmlGetProp(node, XMLSTR("prefixmatch"));
|
||||||
resource->flags |= util_str_to_bool(temp) ? ALIAS_FLAG_PREFIXMATCH : 0;
|
if (temp) {
|
||||||
|
resource->flags |= util_str_to_bool(temp) ? ALIAS_FLAG_PREFIXMATCH : 0;
|
||||||
|
xmlFree(temp);
|
||||||
|
}
|
||||||
|
|
||||||
/* Attach new <resource> as last entry into the global list. */
|
/* Attach new <resource> as last entry into the global list. */
|
||||||
current = configuration->resources;
|
current = configuration->resources;
|
||||||
|
Loading…
Reference in New Issue
Block a user