aboutsummaryrefslogtreecommitdiffstats
path: root/main/channel.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-12 17:44:04 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-12 17:44:04 +0000
commitcbb22ba26a195239fe78a1a438e2c2234ac6f590 (patch)
tree7bd48c0b85804e18ac0ea12e0cf4aae344678f5a /main/channel.c
parent1f7450806b0574cad2d7ef20abe86356906a5e7a (diff)
Merged revisions 89184 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r89184 | tilghman | 2007-11-12 11:29:17 -0600 (Mon, 12 Nov 2007) | 5 lines Fix two cases of memory corruption caused by background threads. Reported by: atis Patch by: tilghman Fixes issue #10923 ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89185 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/channel.c')
-rw-r--r--main/channel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c
index a0769fa0e..288d759f2 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -1418,6 +1418,8 @@ int ast_hangup(struct ast_channel *chan)
chan->audiohooks = NULL;
}
+ ast_autoservice_stop(chan);
+
if (chan->masq) {
if (ast_do_masquerade(chan))
ast_log(LOG_WARNING, "Failed to perform masquerade\n");