lib: fs: fix dangling address space handle

This commit is contained in:
2026-03-18 21:09:23 +00:00
parent cf70352caa
commit 0471838f30

View File

@@ -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);