Commit 975a93de authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

mshtml: Remove redundant NULL check before HeapFree (Smatch).

parent 94d33d3e
......@@ -256,10 +256,8 @@ static HRESULT WINAPI HTMLLocation_get_href(IHTMLLocation *iface, BSTR *p)
ret = S_OK;
cleanup:
if(buf)
HeapFree(GetProcessHeap(), 0, buf);
if(url_path)
HeapFree(GetProcessHeap(), 0, url_path);
HeapFree(GetProcessHeap(), 0, buf);
HeapFree(GetProcessHeap(), 0, url_path);
return ret;
}
......
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