winhttp: Fix a memory leak.

Hans Leidekker hans at codeweavers.com
Mon May 13 05:17:36 CDT 2013


Reported by Marcus Meissner.
---
 dlls/winhttp/request.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index 3238aa5..436a02f 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -1582,6 +1582,8 @@ static BOOL do_authorization( request_t *request, DWORD target, DWORD scheme_fla
         {
             ERR("authentication scheme changed from %s to %s\n",
                 debugstr_w(auth_schemes[authinfo->scheme].str), debugstr_w(auth_value));
+            destroy_authinfo( authinfo );
+            *auth_ptr = NULL;
             return FALSE;
         }
         in.BufferType = SECBUFFER_TOKEN;
-- 
1.7.10.4






More information about the wine-patches mailing list