aboutsummaryrefslogtreecommitdiff
path: root/url.ha
diff options
context:
space:
mode:
Diffstat (limited to 'url.ha')
-rw-r--r--url.ha5
1 files changed, 1 insertions, 4 deletions
diff --git a/url.ha b/url.ha
index 186ea66..7162dd8 100644
--- a/url.ha
+++ b/url.ha
@@ -1,13 +1,10 @@
use strings;
use net::uri;
+// The result must be freed with strings::freeall;
fn segments_from_path(s: str) ([]str | nomem | net::uri::invalid) = {
let sp: []str = strings::split(s, "/")?;
for (let i = 1z; i < len(sp); i += 1)
sp[i - 1] = net::uri::percent_decode(sp[i])?;
return sp[.. len(sp) - 1];
};
-
-fn free_segments(ss: []str) void = {
- strings::freeall(ss);
-};