DragonFlyBSD Kernel Audit
DF-0909 / fix.diff
← back to finding ↓ download raw
diff --git a/vfs/dirfs/dirfs_vfsops.c b/vfs/dirfs/dirfs_vfsops.c
--- a/vfs/dirfs/dirfs_vfsops.c
+++ b/vfs/dirfs/dirfs_vfsops.c
@@ -146,6 +146,7 @@
 			goto failure;
 		}
 	} else {
+		kfree(dmp, M_DIRFS);
 		error = errno;
 		goto failure;
 	}