summaryrefslogtreecommitdiffstats
path: root/sys/fs/cd9660/cd9660_node.c
diff options
context:
space:
mode:
authorbp <bp@FreeBSD.org>2000-06-29 01:19:12 +0000
committerbp <bp@FreeBSD.org>2000-06-29 01:19:12 +0000
commit579668ebe92fcc9fc9f444a713083a7b42f6a23f (patch)
treeb3968c7e93706f2b4d1798658dd626d9123e86c5 /sys/fs/cd9660/cd9660_node.c
parent6c6297b200fc4c9df8b5bd35fcd4a48fa764c5c5 (diff)
downloadFreeBSD-src-579668ebe92fcc9fc9f444a713083a7b42f6a23f.zip
FreeBSD-src-579668ebe92fcc9fc9f444a713083a7b42f6a23f.tar.gz
Fix memory leakage on module unload.
Spotted by: fixed INVARIANTS code
Diffstat (limited to 'sys/fs/cd9660/cd9660_node.c')
-rw-r--r--sys/fs/cd9660/cd9660_node.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/fs/cd9660/cd9660_node.c b/sys/fs/cd9660/cd9660_node.c
index a1dfd39..4c95977 100644
--- a/sys/fs/cd9660/cd9660_node.c
+++ b/sys/fs/cd9660/cd9660_node.c
@@ -79,6 +79,16 @@ cd9660_init(vfsp)
return (0);
}
+int
+cd9660_uninit(vfsp)
+ struct vfsconf *vfsp;
+{
+
+ if (isohashtbl != NULL)
+ free(isohashtbl, M_ISOFSMNT);
+ return (0);
+}
+
/*
* Use the device/inum pair to find the incore inode, and return a pointer
OpenPOWER on IntegriCloud