Commit 403201b8 authored by Adam Martinson's avatar Adam Martinson Committed by Alexandre Julliard

msxml3: Prevent a memory leak if domdoc creation fails.

parent 7c47a9d1
......@@ -2873,6 +2873,8 @@ HRESULT DOMDocument_create(const GUID *clsid, IUnknown *pUnkOuter, void **ppObj)
hr = DOMDocument_create_from_xmldoc(xmldoc, (IXMLDOMDocument3**)ppObj);
if(FAILED(hr))
{
free_properties(properties_from_xmlDocPtr(xmldoc));
heap_free(xmldoc->_private);
xmlFreeDoc(xmldoc);
return hr;
}
......
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