diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2015-12-16 00:52:35 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2015-12-16 00:52:35 +0000 |
commit | e51b2b1eeaad474e4bc52deb0fd59b501c305a80 (patch) | |
tree | d19cc97dc803d4c0dfb91bc001a8eb98c84dfd2e /sys/fs/nfs/nfs_commonport.c | |
parent | 0696c87609cb06af71377db0d481f43e7bd039c2 (diff) | |
download | FreeBSD-src-e51b2b1eeaad474e4bc52deb0fd59b501c305a80.zip FreeBSD-src-e51b2b1eeaad474e4bc52deb0fd59b501c305a80.tar.gz |
MFC: r291638
Fix the memory leak that occurs when the nfscommon.ko module is unloaded.
This leak was introduced by r291527 (r292223 in stable/10).
Since the nfscommon.ko module is rarely unloaded, this leak would not
have been much of an issue.
Diffstat (limited to 'sys/fs/nfs/nfs_commonport.c')
-rw-r--r-- | sys/fs/nfs/nfs_commonport.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/nfs/nfs_commonport.c b/sys/fs/nfs/nfs_commonport.c index 4910c61..85738af 100644 --- a/sys/fs/nfs/nfs_commonport.c +++ b/sys/fs/nfs/nfs_commonport.c @@ -624,6 +624,8 @@ nfscommon_modevent(module_t mod, int type, void *data) nfsd_call_nfscommon = NULL; callout_drain(&newnfsd_callout); + /* Clean out the name<-->id cache. */ + nfsrv_cleanusergroup(); /* and get rid of the mutexes */ mtx_destroy(&nfs_nameid_mutex); mtx_destroy(&newnfsd_mtx); |