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:
Marcus Meissner 2017-06-20 09:25:05 +02:00 committed by Alexandre Julliard
parent eb96566ef4
commit f4e2a10973

View file

@ -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;
}
}