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
Parents
rS357978: fetch(3): fix regression in IPv6:port spec from r357977
Branches
Unknown
Tags
Unknown