]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channel: Fix reference counting in ast_channel_suppress.
authorJoshua Colp <jcolp@digium.com>
Thu, 15 Jun 2017 12:32:32 +0000 (12:32 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 15 Jun 2017 12:32:32 +0000 (12:32 +0000)
commit4910a3bf402baddf8ed72badfaed7ae64da48686
treeeebd694cc370cce625d36ec909ad4547223cd39d
parent8a858275eb55babf03b5b9c6129deee399ce3583
channel: Fix reference counting in ast_channel_suppress.

The ast_channel_suppress function wrongly decremented the
reference count of the underlying structure used to keep
track of what should be suppressed on a channel if the
function was called multiple times on the same channel.

This change cleans up the reference counting a bit so
this no longer occurs.

ASTERISK-27016

Change-Id: I2eed4077cb4916e6626f9f120b63b963acc5c136
main/channel.c