esp32_https_server icon indicating copy to clipboard operation
esp32_https_server copied to clipboard

Fixed memory leak in the Websocket example

Open Mis1eader-dev opened this issue 3 years ago • 1 comments

The heap will fill up with memory leaks if the pointer of previous clients is nullified without freeing up their allocated memory.

Mis1eader-dev avatar Jul 12 '22 06:07 Mis1eader-dev

It appears cleaning up dynamically allocated memory of individual WebsocketHandlers causes heap corruption, is memory cleanup handled by the library itself? I doubt that this is the case. There is an issue that is not visible in plain sight which has to do with memory deallocation.

Mis1eader-dev avatar Jul 25 '22 17:07 Mis1eader-dev