mirror of
https://github.com/esphome/esphome.git
synced 2026-09-24 21:44:04 +00:00
The destructor relies solely on tcp_abort() for cleanup, but LWIP considers ownership of pbufs transferred once the recv callback accepts them. If rx_buf_ is non-null when the socket is destroyed, those pbufs are leaked. Free them explicitly before the base class destructor calls tcp_abort().