urlmon: Remove superfluous NULL check before heap_free (Smatch).
Michael Stefaniuc
mstefani at redhat.de
Tue Sep 7 16:10:56 CDT 2010
---
dlls/urlmon/uri.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/urlmon/uri.c b/dlls/urlmon/uri.c
index 94be29b..dbe6d72 100644
--- a/dlls/urlmon/uri.c
+++ b/dlls/urlmon/uri.c
@@ -3310,8 +3310,7 @@ static HRESULT get_builder_component(LPWSTR *component, DWORD *component_len,
static HRESULT set_builder_component(LPWSTR *component, DWORD *component_len, LPCWSTR new_value,
WCHAR prefix, DWORD *flags, DWORD success_flag)
{
- if(*component)
- heap_free(*component);
+ heap_free(*component);
if(!new_value) {
*component = NULL;
--
1.7.2.2
More information about the wine-patches
mailing list