Commit 7c59b468 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winhttp: Fix a memory leak.

Found by valgrind.
parent f80ca42e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment