Michael Stefaniuc : urlmon: Remove a redundant NULL check before CoTaskMemFree().
Alexandre Julliard
julliard at winehq.org
Fri Jul 8 10:02:05 CDT 2016
Module: wine
Branch: master
Commit: 7218d488647388816e599420a596c416be72d80a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7218d488647388816e599420a596c416be72d80a
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Fri Jul 8 10:17:24 2016 +0200
urlmon: Remove a redundant NULL check before CoTaskMemFree().
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/urlmon/bindctx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/urlmon/bindctx.c b/dlls/urlmon/bindctx.c
index d8bba1b..2759f3d 100644
--- a/dlls/urlmon/bindctx.c
+++ b/dlls/urlmon/bindctx.c
@@ -429,7 +429,7 @@ static HRESULT WINAPI BSCHttpNegotiate_OnResponse(IHttpNegotiate2 *iface, DWORD
if(pszAdditionalRequestHeaders)
*pszAdditionalRequestHeaders = additional_headers;
- else if(additional_headers)
+ else
CoTaskMemFree(additional_headers);
return hres;
More information about the wine-cvs
mailing list