Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
When the system is in auto-reconnect mode, like in the default configuration, I seem to be getting memory leaks. In auto-reconnect mode, the program will occasionally re-read the certificates from the SD card, and each time it does this it can lose 20k of memory. I have attached three files logging what outputs to console when I disconnect the antenna after a session has started.
/media/uploads/jrecchio/mem-leak-reconnect-001.txt
/media/uploads/jrecchio/mem-leak-reconnect-002.txt
/media/uploads/jrecchio/mem-leak-reconnect-003.txt
I'm not sure why it is inconsistent on when it loses the memory, but I believe it stems from not properly destroying the objects created when reading certificate information { iot_tls_destroy() }