]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Decrease the module ref count in sip_hangup when SIP_DEFER_BYE_ON_TRANSFER is set...
authorMatthew Nicholson <mnicholson@digium.com>
Tue, 22 Jun 2010 17:31:57 +0000 (17:31 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Tue, 22 Jun 2010 17:31:57 +0000 (17:31 +0000)
(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/branches/1.4@271902 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 6c1d4b7e1d20bfbc402f70be09cd96834e6aa720..8d36daebe50128f049c0bef1b7c36b79e83b3aa1 100644 (file)
@@ -3695,6 +3695,7 @@ static int sip_hangup(struct ast_channel *ast)
                ast_clear_flag(&p->flags[0], SIP_NEEDDESTROY);
                p->owner->tech_pvt = NULL;
                p->owner = NULL;  /* Owner will be gone after we return, so take it away */
+               ast_module_unref(ast_module_info->self);
                return 0;
        }
        if (option_debug) {