mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 06:00:45 +00:00
winhttp: Fix a couple of memory leaks (valgrind).
This commit is contained in:
parent
e49ebbe953
commit
6494c50ad7
@ -488,6 +488,7 @@ BOOL netconn_secure_connect( netconn_t *conn, WCHAR *hostname )
|
||||
}
|
||||
}
|
||||
|
||||
heap_free(read_buf);
|
||||
|
||||
if(status != SEC_E_OK || res != ERROR_SUCCESS) {
|
||||
WARN("Failed to initialize security context failed: %08x\n", status);
|
||||
|
@ -2250,6 +2250,8 @@ static BOOL handle_redirect( request_t *request, DWORD status )
|
||||
request->read_chunked = FALSE;
|
||||
request->read_chunked_eof = FALSE;
|
||||
}
|
||||
else heap_free( hostname );
|
||||
|
||||
if (!(ret = add_host_header( request, WINHTTP_ADDREQ_FLAG_REPLACE ))) goto end;
|
||||
if (!(ret = open_connection( request ))) goto end;
|
||||
|
||||
@ -2278,7 +2280,6 @@ static BOOL handle_redirect( request_t *request, DWORD status )
|
||||
ret = TRUE;
|
||||
|
||||
end:
|
||||
if (!ret) heap_free( hostname );
|
||||
heap_free( location );
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user