I saw SR_XTYPE_DATA(if i'm not wrong) which gives you the possibility to have a free
function but didn't use it because of the following:
* for transactions - no avps is used pointer is passed only using tm callbacks;
* for dialogs - as you're saying, dialog lifetime >> tranasaction, so i'm
using DLGCB_TERMINATED free function to free the pointer; i'm using the avps only to
pass data from sip_trace function to DLGCB_CREATED;
I tested the code against leaks for the following scenarions: successfull call, kamailio
generated dual bye, INVITE failed with 491 and CANCEL scenario. There are no leaks. If you
have other scenarios in mind I'll be glad to try them out.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1963#issuecomment-495119647