From 975a93de6813706d71bdde017092dc7522afd8e9 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Mon, 19 Oct 2009 22:55:03 +0200 Subject: [PATCH] mshtml: Remove redundant NULL check before HeapFree (Smatch). --- dlls/mshtml/htmllocation.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/mshtml/htmllocation.c b/dlls/mshtml/htmllocation.c index 5db526702c5..e7b66497922 100644 --- a/dlls/mshtml/htmllocation.c +++ b/dlls/mshtml/htmllocation.c @@ -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; } -- 2.11.4.GIT