summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2007-11-12 17:44:04 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2007-11-12 17:44:04 +0000
commit061e5a1674ffea6a2857384cc82a7e3bfb3c08d2 (patch)
tree7bd48c0b85804e18ac0ea12e0cf4aae344678f5a /main
parent2a0b16b663fe49eb13e0e8596ce56ec5a73e28be (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: https://origsvn.digium.com/svn/asterisk/trunk@89185 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-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");