Michael Stefaniuc : msxml3: Remove redundant NULL check before HeapFree ( Smatch).
Alexandre Julliard
julliard at winehq.org
Fri Jul 18 06:45:49 CDT 2008
Module: wine
Branch: master
Commit: 5330f7171dc09dc2e02713e4c11db3f4587ff4c4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5330f7171dc09dc2e02713e4c11db3f4587ff4c4
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Thu Jul 17 22:49:06 2008 +0200
msxml3: Remove redundant NULL check before HeapFree (Smatch).
---
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;
}
More information about the wine-cvs
mailing list