fix leak in test

This commit is contained in:
Karl Seguin
2025-06-03 10:49:52 +08:00
parent 9c2e3e2c76
commit 97b17af056

View File

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