core: fix packet double free

This commit is contained in:
Arran Ireland
2025-07-08 07:20:34 +01:00
parent 67d433b992
commit 99af5cef95

View File

@@ -147,7 +147,6 @@ fn announceTask(self: *Self, interface: *Interface, announce: *Event.In.Announce
fn packetIn(self: *Self, interface: *Interface, packet: *Packet, now: u64) !void {
const header = packet.header;
defer packet.deinit();
if (self.shouldDrop(packet)) {
return;