[Freeswitch-users] Best practices for memory pool usage in modules?

Nathan Neulinger nneul at mst.edu
Sat Aug 3 01:36:14 MSD 2013


I'm looking into memory leak issues with mod_skinny, and it seems clear that it's repeatedly allocating memory when it 
doesn't really need to hang onto it permanently.

Since it has both a long standing connection to each device (listener) and has requests coming in regularly that 
currently are allocating memory and appear to be leaking it since the listener stays around.

Would having the code allocate a new temporary sub-pool for each request that comes in be appropriate, or would it be 
better to just use regular malloc for those allocate/use/destroy cases?

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       nneul at mst.edu
Missouri S&T Information Technology    (573) 612-1412
System Administrator - Architect



Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list