aboutsummaryrefslogtreecommitdiff
path: root/main.ha
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-15 11:36:35 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-15 11:36:35 +0800
commitb9e1c42a47b40c8dbd9e20da816e28be5c1d5b09 (patch)
tree8c9cdabc3b9815b332020bf1aedd7644a5c8f4fc /main.ha
parentAdd the CSS (diff)
downloadforge-b9e1c42a47b40c8dbd9e20da816e28be5c1d5b09.tar.gz
forge-b9e1c42a47b40c8dbd9e20da816e28be5c1d5b09.tar.zst
forge-b9e1c42a47b40c8dbd9e20da816e28be5c1d5b09.zip
Use strings::freeall directly instead of wrapping it
Diffstat (limited to 'main.ha')
-rw-r--r--main.ha2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.ha b/main.ha
index 3deb557..7b32b9d 100644
--- a/main.ha
+++ b/main.ha
@@ -65,6 +65,6 @@ export fn handlereq(conn: io::handle, request: *http::request) (void | io::error
htmpl::write(conn, "HTTP/1.1 200 OK\r\n")?;
htmpl::write(conn, "Content-Type: text/html\r\n\r\n")?;
let segments = segments_from_path(request.target.raw_path)?;
- defer free_segments(segments);
+ defer strings::freeall(segments);
tp_index(conn, segments)?;
};