[asterisk-dev] ast_frame allocation/free question

Klaus Darilion klaus.mailinglists at pernau.at
Thu Nov 29 06:53:42 CST 2007



Matthew Nicholson wrote:
> 
> We don't need a set of general rules like "if you alloc,  you should
> free" (if frames were reference counted, this might make sense).  We
> need a set of rules like "you are responsible for freeing frames
> returned from ast_read()" or "ast_write() does not automatically free
> written frames, you are still responsible".  Clearly documenting who is
> responsible for cleaning up resources should clear up the confusion
> here.


You are right, unfortunately it is missing:
http://asterisk.org/doxygen/1.4/channel_8c.html#698d3301ebb897275188816361bb4bcd

It would be great if I person with knowledge and write access could fix 
this.

regards
klaus



More information about the asterisk-dev mailing list