mongoose-cpp icon indicating copy to clipboard operation
mongoose-cpp copied to clipboard

Memory leak

Open d3roch4 opened this issue 10 years ago • 2 comments

Memory leak in RequestHandler.h file: 29 this allocating a Response and Controller.cpp file: allocating another 113 this Response. At the end apens one will be deleted causing a memory leak.

My suggestion is to move the Controller method :: serverInternalError the Controller class to RequestHandler class, I'll implentar this and commit on my fork.

d3roch4 avatar Oct 29 '15 18:10 d3roch4

Would you mind making a pull request?

Gregwar avatar Oct 29 '15 19:10 Gregwar

pull request: https://github.com/Gregwar/mongoose-cpp/pull/23

d3roch4 avatar Nov 10 '15 11:11 d3roch4