]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_stasis: Plug reference leak on stolen channels
authorGeorge Joseph <gjoseph@digium.com>
Fri, 16 Jun 2017 14:31:04 +0000 (08:31 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 16 Jun 2017 20:08:39 +0000 (15:08 -0500)
commit4a66babfe0d9b5ff2103d890c2867c495a15df2b
tree59853ed166b3943eb069214e9d4c5d2f07d0f8b6
parent88e8fc12794b05d6ac92b2808634e2425c4141bf
res_stasis:  Plug reference leak on stolen channels

When a stasis channel is stolen by another app, the control
structure is unreffed but never unlinked from the app_controls
container.  This causes the channel reference to leak.

Added OBJ_UNLINK to the callback in channel_stolen_cb.

Also added some additional channel lifecycle debug messages to
channel.c.

ASTERISK-27059 #close
Repoorted-by: George Joseph
Change-Id: Ib820936cd49453f20156971785e7f4f182c56e14
main/channel.c
res/res_stasis.c