Files
MeshCore/src/helpers
MUSTARDTIGERFPV f6bc7a194a Free OtaContext-owned buffers when the context is torn down
OtaContext owns serve_buf, serve_self_leaves and serve_self_proof as raw
malloc'd pointers, and nothing freed them on teardown: self-serve only frees
them when it re-allocates, and reset_session() does not touch them. That was
harmless while the context was a permanent .bss singleton, but both dynamic
storage modes destroy it between operations - OTA_HEAP_CONTEXT deletes it,
and the Companion's borrowed queue runs ~OtaContext() in place. A self-serving
node reaches release with both self-serve buffers populated, so every
acquire/release cycle leaked them.

Give OtaContext a destructor that releases what it owns, and delete the copy
operations so the raw pointers cannot be double-freed.
2026-09-09 01:24:00 -07:00
..
2026-08-24 17:12:56 +10:00
2026-02-18 22:32:01 +07:00
2026-07-22 00:43:38 -07:00
2026-07-22 00:43:38 -07:00
2026-07-20 15:47:03 +01:00