From 24a5e7c135b2b712bdeed0fa75505556935c81c9 Mon Sep 17 00:00:00 2001 From: iamgweej Date: Sat, 29 Aug 2020 18:33:45 +0300 Subject: [PATCH] Minor change: reorder destroy() and deinit() --- src/kernel/filesystem/vfs.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/filesystem/vfs.zig b/src/kernel/filesystem/vfs.zig index 5634541..c31c379 100644 --- a/src/kernel/filesystem/vfs.zig +++ b/src/kernel/filesystem/vfs.zig @@ -591,8 +591,8 @@ test "mount" { // The fs that is to be mounted var testfs2 = try testInitFs(allocator); - defer testfs2.deinit(); defer allocator.destroy(testfs2); + defer testfs2.deinit(); testfs2.instance = 2; // Create the dir to mount to