Memory leak
Good day. Today I find memory leak. It's happened in http_server.h in do_accept. See this lines:
{
if (!ec)
{
is.post([p]
{
p->start();
});
}
do_accept();
});
if ec != 0 then we have memory leak. I just add:
else {
delete p;
}
but may be you have some another idea about how fix this?
Same here. It's definetely leaking.
I created an example using this library and OpenCV. I'm passing an image through a POST and filtering this image with a gaussian filter. In the first images it rises from a few megabytes to hundreds of megabytes in memory. You can check the project in https://github.com/arthurafarias/microservice-opencv-filter-gausian.
It's probably the same problem as here: https://github.com/ipkn/crow/issues/316