wininet: Don't leak the proxy username and password in WININET_SetProxyAuthorization.

This commit is contained in:
Hans Leidekker 2009-07-23 12:04:59 +02:00 committed by Alexandre Julliard
parent 4b1e0de90f
commit 1126b89360

View File

@ -231,12 +231,14 @@ static BOOL WININET_SetProxyAuthorization( HINTERNET hRequest,
if( !p )
goto done;
HeapFree(GetProcessHeap(), 0, hIC->lpszProxyUsername);
hIC->lpszProxyUsername = p;
p = heap_strdupW(password);
if( !p )
goto done;
HeapFree(GetProcessHeap(), 0, hIC->lpszProxyPassword);
hIC->lpszProxyPassword = p;
ret = TRUE;