Michael Stefaniuc : urlmon: Remove a redundant NULL check before free ( Smatch).
Module: wine Branch: master Commit: 036db280d2efb9c36b8ac4cf0dadabe349385bda URL: http://source.winehq.org/git/wine.git/?a=commit;h=036db280d2efb9c36b8ac4cf0d... Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Tue Oct 11 00:03:42 2011 +0200 urlmon: Remove a redundant NULL check before free (Smatch). --- 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)
participants (1)
-
Alexandre Julliard