From 2e9373bd12bc972cf6d947ebb871f98967e3b1ae Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 15 Mar 2025 23:40:22 +0800 Subject: Close the static_fs --- main.ha | 1 + 1 file changed, 1 insertion(+) diff --git a/main.ha b/main.ha index fc41240..cf2099a 100644 --- a/main.ha +++ b/main.ha @@ -39,6 +39,7 @@ export fn main() void = { }; static_fs = os::diropen("static")!; + defer fs::close(static_fs as *fs::fs); const server = match (http::listen(ip_addr, port, net::tcp::reuseport, net::tcp::reuseaddr)) { case let this: *http::server => -- cgit v1.2.3