msxml3: Fixed attribute value string leak (Valgrind).
This commit is contained in:
parent
e2bf5163ec
commit
f9df884536
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue