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

Michael Stefaniuc mstefani at redhat.de
Mon Oct 19 15:55:03 CDT 2009


---
 dlls/mshtml/htmllocation.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/mshtml/htmllocation.c b/dlls/mshtml/htmllocation.c
index 5f09958..6db78fb 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;
 }
-- 
1.6.5



More information about the wine-patches mailing list