wininet: Fix WININET_SetAuthorization on error path (coverity)
André Hentschel
nerv at dawncrow.de
Tue Oct 30 14:07:25 CDT 2012
CID 713793
---
dlls/wininet/dialogs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
--
1.8.0
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list