Similar to r293704, fix theoretical leak of netconfig(3) resources in
authorngie <ngie@FreeBSD.org>
Mon, 11 Jan 2016 22:01:33 +0000 (22:01 +0000)
committerngie <ngie@FreeBSD.org>
Mon, 11 Jan 2016 22:01:33 +0000 (22:01 +0000)
commit728878b7d7d47d22224013c41e3638b0b2e11332
treedd9b5733a7bcdbd18034427dadced14224dca611
parentcf1ded0c14305d1beb8f684c5c2af13f5199a13e
Similar to r293704, fix theoretical leak of netconfig(3) resources in
__rpcbind_is_up(..) if getnetconfig(3) is partly successful in allocating
resources, but not completely successful by moving the endnetconfig(3) call
up before we return from the function if nconf == NULL.

MFC after: 1 week
Reported by: Coverity
Submitted by: Miles Ohlrich <miles.ohlrich@isilon.com>
Sponsored by: EMC / Isilon Storage Division
lib/libc/rpc/rpcb_clnt.c