Lightpanda: the headless browser designed for AI and automation
deallocate queued with same singleflight allocator
Muki Kiboigo00d5be5c5b56
diff --git a/src/network/RobotsGate.zig b/src/network/RobotsGate.zigindex fdbb68b31..a4692de27 100644--- a/src/network/RobotsGate.zig+++ b/src/network/RobotsGate.zig@@ -143,7 +143,7 @@ fn fetchThenResume(self: *RobotsGate, robots_url: [:0]const u8, transfer: *Trans// whose body never got parsed) fails open.fn flushPending(self: *RobotsGate, robots_url: []const u8) void {var queued = self.single_flight.take(robots_url) orelse return;- defer queued.deinit(self.allocator);+ defer queued.deinit(self.single_flight.allocator);const robot_entry = self.network.robot_store.get(robots_url);for (queued.items) |transfer| {