-->
Page 1 of 1

Memory leak in ESP8266WebServer library

PostPosted: Wed May 20, 2015 4:10 am
by Huangl
The memory became more and more less every time when ESP received require sent from a web until it reset.It seems that it dosen't relaese the memory after server.handleClient()?

My test program is simple.ESP works as a webserver and when it receive require,it sends the sizes of free heap via serial port.

Anyone has idea of it?

Thanks millions! :P

Re: Memory leak in ESP8266WebServer library

PostPosted: Thu May 21, 2015 10:16 am
by andres
I've noticed the same as You with "system_get_free_heap_size()", after each response to incoming clients requests, Heap becomes about 200 bytes smaller.
But... ;) ...if You wait a bit (30-60 seconds), You will see that The Heap returns to its original size.

Re: Memory leak in ESP8266WebServer library

PostPosted: Thu May 21, 2015 2:14 pm
by ficeto
fixed and coming soon to everybody.

Re: Memory leak in ESP8266WebServer library

PostPosted: Thu May 21, 2015 4:24 pm
by easy123
So what's the reason ? The client connection doesn't clean ?
Is there a timer after 30-60 seconds, a garbage collector mechanism ?