HARestAPI icon indicating copy to clipboard operation
HARestAPI copied to clipboard

Memory leak

Open insound opened this issue 4 years ago • 3 comments

When uses sendCustomHAData every request couses heap corruption. It present in 0.3, but 0.2 ok,

insound avatar Oct 05 '21 09:10 insound

Interesting, I use code very similar to ESP8266HTTPClient code for ESP8266. What device are you trying to run the code on?

debsahu avatar Oct 05 '21 13:10 debsahu

ESP32. When i have more time, i will test it more. But i was reading about HTTPClient in ESP32 had a leak before. I guess problem might be in "http->addHeader", becouse need cleen after it sended (probaly), btw .end() cant clean that. Next week i have more time, im use HA every day in different projetct, and your project helpful - im try to fix that with u)

insound avatar Oct 05 '21 20:10 insound

I guess you are referring to https://github.com/espressif/arduino-esp32/issues/3659

debsahu avatar Oct 05 '21 20:10 debsahu