]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fetch(3): don't leak sockshost on failure
authorkevans <kevans@FreeBSD.org>
Sat, 15 Feb 2020 19:47:49 +0000 (19:47 +0000)
committerkevans <kevans@FreeBSD.org>
Sat, 15 Feb 2020 19:47:49 +0000 (19:47 +0000)
commitdcac02b6f5ac3b972678a3a3b35e7a17c5fc7f36
tree37f5543da5b71369f4027b1157f054325c40346e
parenta836f4d4a87878669e3340041875bd97bc20b72f
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...
lib/libfetch/common.c