Commit 96a6053f authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winhttp: Avoid double free on connection error.

Reported by Stefan Dösinger. Signed-off-by: 's avatarHans Leidekker <hans@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent ca56f992
......@@ -234,7 +234,8 @@ netconn_t *netconn_create( hostdata_t *host, const struct sockaddr_storage *sock
if (!ret)
{
WARN("unable to connect to host (%u)\n", get_last_error());
netconn_close( conn );
closesocket( conn->socket );
heap_free( conn );
return NULL;
}
return conn;
......
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