Commit dcc545be authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent b1d46e0b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment