diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-12 17:29:17 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-12 17:29:17 +0000 |
commit | 30ed5ed291cdcad37642eb71631a616cd2ab3e25 (patch) | |
tree | 639d9768258f002fd8ccd8f64ea1ec66c41e7a05 /main | |
parent | 14834b987bf2bc2a1e6bbcf2bfd7550f3b083874 (diff) |
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/branches/1.4@89184 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/channel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c index 00e57117b..c9de79bc0 100644 --- a/main/channel.c +++ b/main/channel.c @@ -1709,6 +1709,8 @@ int ast_hangup(struct ast_channel *chan) detach_spies(chan); /* get rid of spies */ + ast_autoservice_stop(chan); + if (chan->masq) { if (ast_do_masquerade(chan)) ast_log(LOG_WARNING, "Failed to perform masquerade\n"); |