urlmon: Remove a redundant NULL check before free. (Smatch)
Michael Stefaniuc
mstefani at redhat.de
Mon Oct 10 17:03:42 CDT 2011
---
dlls/urlmon/http.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/urlmon/http.c b/dlls/urlmon/http.c
index 5a606ca..a081ad0 100644
--- a/dlls/urlmon/http.c
+++ b/dlls/urlmon/http.c
@@ -528,10 +528,8 @@ static void HttpProtocol_close_connection(Protocol *prot)
This->http_negotiate = NULL;
}
- if(This->full_header) {
- heap_free(This->full_header);
- This->full_header = NULL;
- }
+ heap_free(This->full_header);
+ This->full_header = NULL;
}
static void HttpProtocol_on_error(Protocol *prot, DWORD error)
--
1.7.6.4
More information about the wine-patches
mailing list