Fix incorrect calls to ast_bridge_impart().
authorRichard Mudgett <rmudgett@digium.com>
Wed, 26 Jun 2013 01:46:30 +0000 (01:46 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 26 Jun 2013 01:46:30 +0000 (01:46 +0000)
commita022379107a6c55d5c8ce393d1f5da6691ccac3c
treed5ecd8e834e4963f863415113fc0df56f9c0e228
parentf25bbd6c56e55c4dca7239f0c56eb4b6bee1b155
Fix incorrect calls to ast_bridge_impart().

There was a misunderstanding about ast_bridge_impart()'s handling of the
imparted channel's reference.  The channel reference is passed by the
caller unless ast_bridge_impart() returns an error.

* Fixed a memory leak in conf_announce_channel_push() if the impart
failed.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392934 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/confbridge/conf_chan_announce.c
channels/chan_sip.c
include/asterisk/bridging.h