destroying pjsip_tx_data manually

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

 



On 2/26/08, Roman Puls <pjsip at x-fabric.com> wrote:
>
>  Hi together,
>
> does "pjsip_tx_data_dec_ref" release the memory of a "pjsip_tx_data"
> structure that has been created with "pjsip_endpt_create_request" before?
>

It will, once the reference counter reaches zero.

> I am asking that since several errors can occur (in my software) before I
> have the change to call "pjsip_endpt_send_request" (and I want to avoid
> memory leakage as far as possible) ;-)
>
> BTW: does "pjsip_endpt_send_request" release the memory after the callback
> (regardless of success in terms of sending)?
>

Yes, it will call pjsip_tx_data_dec_ref() regardless of the status See
sip_util_statefull.c:115.

cheers,
 -benny


> Thanks again for that excellent piece of software!
>  Roman
>
>
> _______________________________________________
>  Visit our blog: http://blog.pjsip.org
>
>  pjsip mailing list
>  pjsip at lists.pjsip.org
> 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