1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vlib: use malloc_noscan() where possible (#10465)

This commit is contained in:
Uwe Krüger
2021-06-15 13:47:11 +02:00
committed by GitHub
parent af60eba5e6
commit 60c880a0cc
28 changed files with 56 additions and 83 deletions

View File

@ -12,7 +12,7 @@ fn C.new_tls_context() C.TlsContext
fn (req &Request) ssl_do(port int, method Method, host_name string, path string) ?Response {
mut ctx := C.new_tls_context()
C.vschannel_init(&ctx)
mut buff := unsafe { malloc(C.vsc_init_resp_buff_size) }
mut buff := unsafe { malloc_noscan(C.vsc_init_resp_buff_size) }
addr := host_name
sdata := req.build_request_headers(method, host_name, path)
$if trace_http_request ? {