Re: [gnet-dev] Possible Memory Leak



Hi!

> Hi,
>
> I think there is a memory leak somewhere.  I made the following
> observations with the program below.
>
> o When I comment out the gnet_server_new line, the memory consumption
> drops by 8.
> o When I comment out the gnet_conn_set_watch_error line, the memory
> stays constant, no matter how many clients connect.
> o With the code exactly as below, the memory increases by 8 for each
> _concurrent_ client (see the maximum variable).
> o When a gnet conn client is connected and properly destroyed, it needs
> 8 bytes more than when it fails to connect (program not shown).
>
> So is there a leak in my code, or in gnet (unlikely, looking at its nice
> cleanup code) or in glib (probably somewhere in the watch/source stuff?
>

you could try running it with valgrind to find it out.
I will check it myself when I boot my linux machine at home.

hs





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]