]> git.ipfire.org Git - thirdparty/curl.git/commit
Curl_addrinfo: use one malloc instead of three
authorDaniel Stenberg <daniel@haxx.se>
Sat, 6 Jun 2020 21:10:18 +0000 (23:10 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 8 Jun 2020 14:10:53 +0000 (16:10 +0200)
commit54d3769761e5a842aefa9462cd0eaed00da400d0
tree61fea40c7b150c3ac832a441c8b251183f678b78
parent52777754623628f91ee2316acee52e68831f3e02
Curl_addrinfo: use one malloc instead of three

To reduce the amount of allocations needed for creating a Curl_addrinfo
struct, make a single larger malloc instead of three separate smaller
ones.

Closes #5533
lib/curl_addrinfo.c
lib/doh.c
tests/unit/unit1305.c