mirror of
https://github.com/reactos/wine.git
synced 2025-02-19 20:31:35 +00:00
winhttp: Fix a memory leak.
Found by valgrind.
This commit is contained in:
parent
f80ca42e4b
commit
7c59b46890
@ -368,6 +368,7 @@ BOOL set_server_for_hostname( connect_t *connect, LPCWSTR server, INTERNET_PORT
|
||||
}
|
||||
else if (server)
|
||||
{
|
||||
heap_free( connect->servername );
|
||||
if (!(connect->servername = strdupW( server )))
|
||||
{
|
||||
ret = FALSE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user