[PATCH] msxml3: Remove redundant NULL check before HeapFree (Smatch).

Michael Stefaniuc mstefani at redhat.de
Thu Jul 17 15:49:06 CDT 2008


---
 dlls/msxml3/saxreader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c
index 5fbcf89..d544fdf 100644
--- a/dlls/msxml3/saxreader.c
+++ b/dlls/msxml3/saxreader.c
@@ -1036,7 +1036,7 @@ static HRESULT WINAPI isaxxmlreader_parse(
         xmlFreeParserCtxt(locator->pParserCtxt);
         locator->pParserCtxt = NULL;
     }
-    if(data) HeapFree(GetProcessHeap(), 0, data);
+    HeapFree(GetProcessHeap(), 0, data);
     ISAXLocator_Release((ISAXLocator*)&locator->lpSAXLocatorVtbl);
     return hr;
 }
-- 
1.5.6.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080717/ab408c8a/attachment.pgp 


More information about the wine-patches mailing list