mirror of https://github.com/meshcore-dev/MeshCore
Browse Source
PacketQueue::add() silently dropped packets when the queue was at capacity. The packet pointer was lost — never enqueued, never returned to the unused pool. Each occurrence permanently shrank the 32-packet pool until allocNew() returned NULL and the node went deaf. Return bool from add() and free the packet back to the pool on failure.pull/1726/head
2 changed files with 12 additions and 6 deletions
Loading…
Reference in new issue