[Freeswitch-dev] Newbie question on switch_event_dup() and memory alloc/free in general
Paul Li
plite2012 at gmail.com
Mon Jun 28 22:19:21 PDT 2010
A lot of FreeSwitch core APIs, such as switch_event_dup(switch_event_t
**event, switch_event_t *todup), returns a pointer to an allocated
memory chunk, should the caller always releases that memory chunk by
calling a proper API, such as switch_event_destroy(switch_event_t
**event)?
I could not find any documentation to detail the general rule
regarding memory allocation/free when using the core APIs.
Thank you for your attention!
More information about the FreeSWITCH-dev
mailing list