Use ast_channel_unref to instead of ast_free on a newly created channel.
authorMark Michelson <mmichelson@digium.com>
Wed, 10 Jun 2009 18:58:12 +0000 (18:58 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 10 Jun 2009 18:58:12 +0000 (18:58 +0000)
commit554456f0fc9e4bdcfd6c7f8ef14e12ec103cdd54
tree775da702d92bb7eb4569c9015054fe657c9e4dc3
parent2cec55f03883eb0ce7d3c7ef058c7197f7a534e8
Use ast_channel_unref to instead of ast_free on a newly created channel.

Also I removed an unnecessary free of a cid_name. This will be freed properly
in the channel destructor.

Reported by mnicholson in #asterisk-dev.

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