waxmiguelito / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

Minor memory leak found and resolved #306

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
do query

MONGOOSE_VERSION "3.0"

Memory for mg_connection.request_info.remote_user is not always released. To 
resolve the issue, add a call to reset_per_request_attributes(conn) in 
worker_thread(), like

while (...)
{
...
}
reset_per_request_attributes(conn);  // plug minor memory leak
free(conn);

in worker_thread() (line 3917)

Original issue reported on code.google.com by sandor.s...@priva.nl on 9 Jan 2012 at 7:52

GoogleCodeExporter commented 9 years ago
Submitted 
http://code.google.com/p/mongoose/source/detail?r=749378b8a3a397677766cf40f3cb6d
dd3c213977, thanks

Original comment by valenok on 4 Mar 2012 at 4:01