Memory Leak problem with Pool

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

 





Hi:
   I need send UPDATE to peer every 5 seconds so I can get
peer's session state from the response. When I keep the session for a long time,
I find that the memory is grow. I find that each time I run pjsua_call_update2() 
function,it calls pjsip_inv_send_msg(),and pjsip_inv_send_msg() calls 
PJ_POOL_ZALLOC_T(inv->pool, struct tsx_inv_data); we know that inv->pool is a 
long term pool, its life time is synchronized with invite_session. It will be 
released only when the session is destoryed; I modify the PJ_POOL_ZALLOC()'s param
 in pjsip_inv_send_msg()function, repleace the inv->pool with rdata->pool and the 
memory dose not grow any more! Can I believe that the problem is resolved?? 

If anyone has any suggestions or advice, I would really, really appreciate it!

LiuMeng


_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux