Fix channel reference leak in Originated channels
authorMatthew Jordan <mjordan@digium.com>
Fri, 23 Aug 2013 22:12:57 +0000 (22:12 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 23 Aug 2013 22:12:57 +0000 (22:12 +0000)
commitf4bf1823e9e7a3ac87d89b09f86f6b6a621ca433
tree84efd48f1e0f93d5ceaaf93e9e63e45744c95dff
parent00d8ef8c7955379d02bfe75e005a87072bc3dc65
Fix channel reference leak in Originated channels

When originating channels, ast_pbx_outgoing_* caused the dialed channel
reference to be bumped twice. Ostensibly, this routine is bumping the channel
lifetime such that the channel doesn't get nuked in between locks/unlocks;
however, since the routine should return the dialed channel with its
reference bumped, it only needs to do this one time.

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