The type SR_XTYPE_VPTR is not resulting in freeing the pointer when XAVP is destroyed, it
was added to keep references to permanent structures kept in memory during runtime.
So I just added (commit 126cfa51be8718082e20e268cf14d0649c60b17d) the new type
SR_XTYPE_SPTR which does a shm_free() on the pointer when the XAVP is destroyed.
If trace info struct is stored permanently in shared memory during Kamailio runtime, then
SR_XTYPE_VPTR is ok, otherwise the patch needs to be updated to set SR_XTYPE_SPTR.
One more remark -- for tracking the dialog, if the trace info struct is not permanent, but
destroyed with the XAVP, be sure you don't pass that pointer to dlg callbacks, because
the life of XAVP is as long as transaction exist, but the dialog is taking longer.
--
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-495110647