Commit 91134b75 authored by Philipp Schafft's avatar Philipp Schafft

Fix: Fixed memory leak with new prefixmatch="" attribute of <resource>

parent 819dc9c7
Pipeline #176 passed with stage
in 48 seconds
......@@ -1956,7 +1956,10 @@ static void _parse_resource(xmlDocPtr doc,
}
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. */
current = configuration->resources;
......
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