Fix a memory leak in the ast_answer / __ast_answer API call.
authorJoshua Colp <jcolp@digium.com>
Mon, 16 Mar 2009 13:58:24 +0000 (13:58 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 16 Mar 2009 13:58:24 +0000 (13:58 +0000)
commit530811280601d439b18cccbefc44aa04f085d88c
tree640d9229b604a05df7de5b16673130ecb38a5822
parentb4fcc4a0981887ecfba44b0d3e7807ea9dc5eaf0
Fix a memory leak in the ast_answer / __ast_answer API call.

For a channel that is not yet answered this API call will wait
until a voice frame is received on the channel before returning.
It does this by waiting for frames on the channel and reading them
in. The frames read in were not freed when they should have been.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@182171 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/channel.c