wsdapi: Fixed memory leak in error path (Coverity).
Signed-off-by: Marcus Meissner <marcus@jet.franken.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
eb96566ef4
commit
f4e2a10973
|
@ -366,6 +366,7 @@ HRESULT WINAPI WSDCreateDiscoveryPublisher(IWSDXMLContext *pContext, IWSDiscover
|
|||
if (FAILED(WSDXMLCreateContext(&obj->xmlContext)))
|
||||
{
|
||||
WARN("Unable to create XML context\n");
|
||||
HeapFree (GetProcessHeap(), 0, obj);
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue