robbiehanson / CocoaHTTPServer

A small, lightweight, embeddable HTTP server for Mac OS X or iOS applications
Other
5.59k stars 1.31k forks source link

iPhoneHTTPServer memory leak #123

Open tpynio opened 9 years ago

tpynio commented 9 years ago

Every ~16 GET-requests of file do 100kb memory-leak.

  1. Just compile(xcode6.1) example and run at iphone-simulator(iPad2/ios 8.1);
  2. connecting with browser(chrome) at localhost to get any file(Web/index.html for default). For example, http://127.0.0.1:56789/Web/index.html;
  3. Then press at browser reload page(F5) 16 times ;
  4. see in "xcode/debug navigator/memory report" strange memory allocation, repeat. Allocated memory never free.