We never free the freertos_addrinfo we get from FreeRTOS_getaddrinfo. Although this is not documented in the FreeRTOS API reference, this buffer should be freed via FreeRTOS_freeaddrinfo.
This is a pretty large allocation (328B), which explains why we run out of memory quickly when doing connects/disconnects in a loop.
We never free the
freertos_addrinfo
we get fromFreeRTOS_getaddrinfo
. Although this is not documented in the FreeRTOS API reference, this buffer should be freed viaFreeRTOS_freeaddrinfo
.This is a pretty large allocation (328B), which explains why we run out of memory quickly when doing connects/disconnects in a loop.