mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 12:23:37 +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)))
|
||||
{
|
||||
WARN("Unable to create XML context\n");
|
||||
HeapFree (GetProcessHeap(), 0, obj);
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue