Commit 89d4247f authored by Mike Hibler's avatar Mike Hibler

Fix a 10.x kernel memory leak.

Not super well testbed yet, but getting there.
parent 012cff34
Index: sys/kern/vfs_export.c
===================================================================
--- sys/kern/vfs_export.c (revision 325353)
+++ sys/kern/vfs_export.c (working copy)
@@ -253,8 +253,7 @@
(*rnh->rnh_walktree) (rnh, vfs_free_netcred, rnh);
RADIX_NODE_HEAD_UNLOCK(rnh);
RADIX_NODE_HEAD_DESTROY(rnh);
- free(rnh, M_RTABLE);
- nep->ne_rtable[i] = NULL; /* not SMP safe XXX */
+ rn_detachhead((void **)&nep->ne_rtable[i]);
}
}
cred = nep->ne_defexported.netc_anon;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment