=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: wininet: Fix WININET_SetAuthorization on error path (coverity).

Alexandre Julliard julliard at winehq.org
Wed Oct 31 17:17:21 CDT 2012


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Tue Oct 30 20:07:25 2012 +0100

wininet: Fix WININET_SetAuthorization on error path (coverity).

---

 dlls/wininet/dialogs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wininet/dialogs.c b/dlls/wininet/dialogs.c
index a3235a4..418610d 100644
--- a/dlls/wininet/dialogs.c
+++ b/dlls/wininet/dialogs.c
@@ -188,7 +188,7 @@ static BOOL WININET_SetAuthorization( http_request_t *request, LPWSTR username,
     q = heap_strdupW(password);
     if( !q )
     {
-        heap_free(username);
+        heap_free(p);
         return FALSE;
     }
 




More information about the wine-cvs mailing list