From 1edc7beb8e6a2aa8184ded68fd53a81335f06ad2 Mon Sep 17 00:00:00 2001 From: Eygene Ryabinkin Date: Fri, 9 Dec 2011 15:38:26 +0400 Subject: [PATCH 1/2] NULLFS: properly destroy node hash Use hashdestroy() instead of naive free(). Signed-off-by: Eygene Ryabinkin --- sys/fs/nullfs/null_subr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sys/fs/nullfs/null_subr.c b/sys/fs/nullfs/null_subr.c index 319e404..aea98f3 100644 --- a/sys/fs/nullfs/null_subr.c +++ b/sys/fs/nullfs/null_subr.c @@ -90,7 +90,7 @@ nullfs_uninit(vfsp) { mtx_destroy(&null_hashmtx); - free(null_node_hashtbl, M_NULLFSHASH); + hashdestroy(null_node_hashtbl, M_NULLFSHASH, null_node_hash); return (0); } -- 1.7.8.3