diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2016-03-24 03:08:39 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2016-03-24 03:08:39 +0000 |
commit | 91bc17507f880f5b3260d2d30972cfe1f7df5eee (patch) | |
tree | 3176e4bf28f3444afd83910a3e15f99621edd639 /sys/kern | |
parent | 6bdd8730ffebf9505d9229cc155703f003bb152a (diff) | |
download | FreeBSD-src-91bc17507f880f5b3260d2d30972cfe1f7df5eee.zip FreeBSD-src-91bc17507f880f5b3260d2d30972cfe1f7df5eee.tar.gz |
Fix M_RTABLE memory leak from r274118 (11/2014).
Replace free(M_RTABLE) with rn_detachhead() to match rn_inithead().
This would trigger when reloading NFS exports and was similar to
problems with pf reload [1].
PR: 194078 [1]
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_export.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c index 9be0ece..9453811 100644 --- a/sys/kern/vfs_export.c +++ b/sys/kern/vfs_export.c @@ -259,7 +259,7 @@ vfs_free_addrlist_af(struct radix_node_head **prnh) (*rnh->rnh_walktree)(&rnh->rh, vfs_free_netcred, &rnh->rh); RADIX_NODE_HEAD_UNLOCK(rnh); RADIX_NODE_HEAD_DESTROY(rnh); - free(rnh, M_RTABLE); + rn_detachhead((void **)prnh); prnh = NULL; } |