The IoT group within AT&T, focusing on the AT&T IoT Starter Kit.

ATT_AWS_IoT_demo Auto-Reconnect Memory Leak

17 May 2017

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() }