[Serdev] Finding a memory leak

Jiri Kuthan jiri at iptel.org
Thu Apr 13 11:29:58 UTC 2006



At 13:57 12/04/2006, Pupeno wrote:
>Hello,
>I am trying to see if my module for SER has a memory leak, so I've set
>memlog to 2 and now I have tons of messages about memory.
>Doing a bit of search I've found things such as:
>
> 2(12621)     403. N  address=0x813b3d8 frag=0x813b3c0 size=4 used=1
> 2(12621)             alloc'd from dialplan.c: mod_init(199)
> 2(12621)         start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
>
>but as far as I know this is not sign of a memory leak, right ?

This seems to be a memory leak.

SER core allocates lot of fragments which are never freed (e.g., in configuration
file processing) and 'pollute' the memory dump. This seems however an allocation you 
do in your own module (dialplan.c:mod_init:199) and you may consider freeing the fragment.

-jiri

>What should I be looking for ?
>
>Thank you.
>-- 
>Pupeno <pupeno at pupeno.com> http://pupeno.com
>
>
>_______________________________________________
>Serdev mailing list
>serdev at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serdev

--
Jiri Kuthan            http://iptel.org/~jiri/ 




More information about the Serdev mailing list