eziya / STM32F4_HAL_LWIP_LAB

STM32 HAL LwIP Testing
50 stars 35 forks source link

ssl_client.c memory leak in STM32F4_HAL_ETH_MBEDTLS repo #1

Open Belinda-Bird opened 4 years ago

Belinda-Bird commented 4 years ago

mbedtls_ssl_setup() allocs memory but you don't free it up in your example loop with mbedtls_ssl_free()

The simple fix I did was move the "1. Start the connection" including the 'While' to just before the " 4. Handshake"

See attached file.

ssl_client.zip

eziya commented 4 years ago

@Belinda-Bird I appreciate Belinda-Bird. Your suggestion solved the memory leak issues.