diff options
author | Matthew Nicholson <mnicholson@digium.com> | 2010-06-22 17:35:17 +0000 |
---|---|---|
committer | Matthew Nicholson <mnicholson@digium.com> | 2010-06-22 17:35:17 +0000 |
commit | 5f45ca4d500ce95e1bfcbea790697b85a27eb528 (patch) | |
tree | 3c4359c9890f69e36657dd6fa9ade3ec56c1260e /channels | |
parent | 42c24b585a20f5e6cb979a963d4381921b0e3641 (diff) |
Merged revisions 271902 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r271902 | mnicholson | 2010-06-22 12:31:57 -0500 (Tue, 22 Jun 2010) | 8 lines
Decrease the module ref count in sip_hangup when SIP_DEFER_BYE_ON_TRANSFER is set. This is necessary to keep the ref count correct.
(closes issue #16815)
Reported by: rain
Patches:
chan_sip-unref-fix.diff uploaded by rain (license 327) (modified)
Tested by: rain
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@271903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 5ec7887df..60ab323f0 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5701,6 +5701,7 @@ static int sip_hangup(struct ast_channel *ast) sip_pvt_lock(p); p->owner = NULL; /* Owner will be gone after we return, so take it away */ sip_pvt_unlock(p); + ast_module_unref(ast_module_info->self); return 0; } |