Hans Leidekker : winhttp: Fix a memory leak.

Alexandre Julliard julliard at winehq.org
Mon May 13 15:02:45 CDT 2013


Module: wine
Branch: master
Commit: 93637828b4b07708cbcebc0aadf5f8a44b3b9121
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=93637828b4b07708cbcebc0aadf5f8a44b3b9121

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Mon May 13 12:17:36 2013 +0200

winhttp: Fix a memory leak.

Reported by Marcus Meissner.

---

 dlls/winhttp/request.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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;




More information about the wine-cvs mailing list