Subject: NULLFS: properly destroy node hash

Use hashdestroy() instead of naive free().

Approved by:	kib
MFC after:	2 weeks
This commit is contained in:
Eygene Ryabinkin 2012-01-18 11:23:46 +00:00
parent 49da75c9f6
commit 15c75a0d9f

View File

@ -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);
}