diff options
| author | Bryan Drewery <bdrewery@FreeBSD.org> | 2016-03-24 03:08:39 +0000 |
|---|---|---|
| committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2016-03-24 03:08:39 +0000 |
| commit | 57a8e341418de2a9a3bda2cd2b793bd588b3a034 (patch) | |
| tree | 3176e4bf28f3444afd83910a3e15f99621edd639 | |
| parent | 4793a1da1c4ee350674a44763f5942c812d47bb1 (diff) | |
| download | src-57a8e341418de2a9a3bda2cd2b793bd588b3a034.tar.gz src-57a8e341418de2a9a3bda2cd2b793bd588b3a034.zip | |
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
Notes
Notes:
svn path=/head/; revision=297222
| -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 9be0ece53d9f..945381108b4f 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; } |
