wininet: Fix a memory leak (valgrind).

This commit is contained in:
Hans Leidekker 2014-05-13 13:42:58 +02:00 committed by Alexandre Julliard
parent 2acd2116d9
commit e49ebbe953
1 changed files with 2 additions and 0 deletions

View File

@ -636,6 +636,8 @@ static DWORD netcon_secure_connect_setup(netconn_t *connection, BOOL compat_mode
}
}
heap_free(read_buf);
if(status != SEC_E_OK || res != ERROR_SUCCESS) {
WARN("Failed to establish SSL connection: %08x (%u)\n", status, res);
heap_free(connection->ssl_buf);