From 97b17af0563c4d22f1724e78c3193eb99e3b8125 Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Tue, 3 Jun 2025 10:49:52 +0800 Subject: [PATCH] fix leak in test --- src/url.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/url.zig b/src/url.zig index 694b9387..b8e54b02 100644 --- a/src/url.zig +++ b/src/url.zig @@ -252,7 +252,7 @@ test "URL: Stiching src as full path" { const base = "https://www.lightpanda.io/"; const src = "https://lightpanda.io/something.js"; - const result = try URL.stitch(allocator, src, base, .{}); + const result = try URL.stitch(allocator, src, base, .{ .alloc = .if_needed }); try testing.expectString("https://lightpanda.io/something.js", result); }