29 Jun
2010
29 Jun
'10
5:19 a.m.
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!