mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 16:05:46 +00:00
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:
parent
b1d46e0b5f
commit
dcc545be21
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue