Fix channel reference leak.
authorMark Michelson <mmichelson@digium.com>
Tue, 29 Sep 2009 21:28:04 +0000 (21:28 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 29 Sep 2009 21:28:04 +0000 (21:28 +0000)
commit01181a27a051bded1f90f338f7d104f0a6fd6a29
treeacaa6a4ab9f5987d820b50ae37e870f059b1a9c1
parent75725abeb4d1db826142ce1ebc9fe2f8a5f79d21
Fix channel reference leak.

ast_cel_report_event would geet a reference to the
bridged channel. However, certain return paths, such
as if CEL was not enabled, would result in a reference
leak. All return paths now properly unref the channel.

(closes issue #15991)
Reported by: mmichelson

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