]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFstable/10 r294239:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 18 Jan 2016 03:51:38 +0000 (03:51 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 18 Jan 2016 03:51:38 +0000 (03:51 +0000)
commit576b83f95f63ff7b7f844f6893b44a6a91604f28
tree873d468b9024f096017767fad0e9fa34602231ab
parent22c6874e695dbf4b23cdd4b219adf6068d324085
MFstable/10 r294239:

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>

git-svn-id: svn://svn.freebsd.org/base/stable/9@294241 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/rpc/rpc_soc.c