HomeFreeBSD

fetch(3): don't leak sockshost on failure

Description

fetch(3): don't leak sockshost on failure

fetch_socks5_getenv will allocate memory for the host (or set it to NULL) in
all cases through the function; the caller is responsible for freeing it if
we end up allocating.

While I'm here, I've eliminated a label that just jumps to the next line...

Details

Provenance
kevansAuthored on Feb 15 2020, 7:47 PM
Parents
rG3dc455e8974c: fetch(3): fix regression in IPv6:port spec from r357977
Branches
Unknown
Tags
Unknown

Event Timeline