From 0471838f30cc40fc6ce66d8249f3440662e49115 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Wed, 18 Mar 2026 21:09:23 +0000 Subject: [PATCH] lib: fs: fix dangling address space handle --- lib/libfs/context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libfs/context.c b/lib/libfs/context.c index dc0d740..57e8d27 100644 --- a/lib/libfs/context.c +++ b/lib/libfs/context.c @@ -75,6 +75,7 @@ struct fs_context *fs_context_create(struct fs_allocator *alloc) TEMP_OBJECT_SIZE, VM_PROT_READ | VM_PROT_WRITE | VM_PROT_USER, &temp_buffer); + kern_handle_close(address_space); if (status != KERN_OK) { kern_handle_close(ctx->ctx_temp_object); kern_handle_close(ctx->ctx_vm_controller);