Question about memory allocations

I trying to develop for asterisk.
And have a question about usage of functions

i e all asterisk functions which return pointer to string. Do i need to use free (or ast_free) after i finished to work with result ? In current source for example chan_sip.c i see massive usage such functions but not see any ast_free after working with result .

This board is not appropriate for developer questions. There is a mailing list and IRC channel for that.

…a routines are normally macros that allocate space by growing the stack; the space is lost when the caller returns. That is the case here. You will need to look at the source code of the other one, as it is not in the version of Asterisk that I use.