mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 06:54:46 +00:00
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)))
|
if (FAILED(WSDXMLCreateContext(&obj->xmlContext)))
|
||||||
{
|
{
|
||||||
WARN("Unable to create XML context\n");
|
WARN("Unable to create XML context\n");
|
||||||
|
HeapFree (GetProcessHeap(), 0, obj);
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue