Commit 91134b75 authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

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, ...@@ -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;
......
Supports Markdown
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