diff options
author | ngie <ngie@FreeBSD.org> | 2016-01-18 03:47:46 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-01-18 03:47:46 +0000 |
commit | 2e97bc7968d26612ada09a355c97b09c7c647a3f (patch) | |
tree | 89bf000940387c3a1dee4aa79c8b0d41aac57bdf /lib/libc/rpc/rpcb_clnt.c | |
parent | d2bb6d5d236d89724b5a8d96ba88262d5e2df991 (diff) | |
download | FreeBSD-src-2e97bc7968d26612ada09a355c97b09c7c647a3f.zip FreeBSD-src-2e97bc7968d26612ada09a355c97b09c7c647a3f.tar.gz |
MFC r293704:
Fix theoretical leak of netconfig(3) resources in svcunix_create(..)
In the event that the getconfig(3) call in svcunix_create is partly successful,
some of the netconfig(3) resources allocated might be leaked if the call returns
NULL as endnetconfig(3) wasn't called explicitly in that case. Ensure that the
resources are fully cleaned up by going to the `done` label, which will call
endnetconfig(3) for us.
Submitted by: Miles Ohlrich <miles.ohlrich@isilon.com>
Diffstat (limited to 'lib/libc/rpc/rpcb_clnt.c')
0 files changed, 0 insertions, 0 deletions