Commit f9df8845 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msxml3: Fixed attribute value string leak (Valgrind).

parent e2bf5163
......@@ -1284,7 +1284,11 @@ static HRESULT WINAPI domelem_setAttribute(
xmlFree(local);
if (ns)
return xmlStrEqual(ns->href, xml_value) ? S_OK : E_INVALIDARG;
{
int cmp = xmlStrEqual(ns->href, xml_value);
heap_free(xml_value);
return cmp ? S_OK : E_INVALIDARG;
}
}
if (!xmlSetNsProp(element, NULL, xml_name, xml_value))
......
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