mirror of
https://github.com/ion232/reticulum-zig.git
synced 2025-12-22 06:37:05 +00:00
core: fix packet double free
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user