tmiw / ezDV

A FreeDV device based on the ESP32.
89 stars 4 forks source link

Fix memory leak in FreeDV Reporter code when sending JSON to server. #51

Closed tmiw closed 3 weeks ago

tmiw commented 3 weeks ago

While working on #50, it was discovered that with IC-705 support turned on, ezDV crashes extremely quickly after the Icom tasks start up. Further investigation of this issue resulted in the discovery that internal RAM usage was decreasing every time ezDV reported to FreeDV Reporter (for example, during frequency changes).

The root cause of this is that we were deleting the message payload and not the entire message. Updating the code to delete the entire message instead results in internal RAM usage remaining relatively constant (depending on what the system is doing).


Before merging: