ufairiya / mongoose

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

Small memory leak for each new connection #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run mongoose for a long time and have it process lots of connections.
2. Watch memory grow very slowly.
3.

What is the expected output? What do you see instead?
mongoose should be freeing the mg_connection objects that it callocs in
accept_new_connection().  Instead they seem to get leaked.

What version of the product are you using? On what operating system?
2.4 (Windows Vista and OS X)

Please provide any additional information below.

To fix I would suggest adding 'free(conn);' at the end of the
close_connection() function.

Original issue reported on code.google.com by jack...@gmail.com on 22 Jul 2009 at 10:40

GoogleCodeExporter commented 9 years ago
This was fixed long ago, please update.

Original comment by valenok on 23 Jul 2009 at 8:25