]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commitdiff
vfs: add vfs_mount_unref to process_close_all_files_locked (P5.1)
authorTulio A M Mendes <[email protected]>
Mon, 25 May 2026 21:15:20 +0000 (18:15 -0300)
committerTulio A M Mendes <[email protected]>
Wed, 3 Jun 2026 04:02:35 +0000 (01:02 -0300)
src/kernel/scheduler.c

index 693072c580b5e70fc5afd32fa05acce3d4728f71..1b66cec9156f0c9cc3655e59944687fb6de543ff 100644 (file)
@@ -394,6 +394,9 @@ static void process_close_all_files_locked(struct process* p) {
             if (f->node) {
                 vfs_close(f->node);
             }
+            if (f->mount_root) {
+                vfs_mount_unref(f->mount_root);
+            }
             kfree(f);
         }
     }