inetcomm: Fixed buffer leak on error path (Coverity).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-04-30 22:42:13 +03:00 committed by Alexandre Julliard
parent b1d46e0b5f
commit dcc545be21

View file

@ -495,8 +495,10 @@ static HRESULT WINAPI MimeHtmlProtocol_Start(IInternetProtocol *iface, const WCH
binding->url[url.mhtml_len] = 0;
hres = CreateURLMoniker(NULL, binding->url, &mon);
if(FAILED(hres))
if(FAILED(hres)) {
heap_free(binding);
return hres;
}
binding->IBindStatusCallback_iface.lpVtbl = &BindStatusCallbackVtbl;
binding->ref = 1;