msxml3: Fixed attribute value string leak (Valgrind).

oldstable
Nikolay Sivov 2014-04-26 00:36:24 +04:00 committed by Alexandre Julliard
parent e2bf5163ec
commit f9df884536
1 changed files with 5 additions and 1 deletions

View File

@ -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))