]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fixes dialog ref count crash isolated to the 1.6.0 branch
authorDavid Vossel <dvossel@digium.com>
Thu, 18 Feb 2010 22:45:41 +0000 (22:45 +0000)
committerDavid Vossel <dvossel@digium.com>
Thu, 18 Feb 2010 22:45:41 +0000 (22:45 +0000)
(closes issue #16375)
Reported by: kobaz

(closes issue #16796)
Reported by: kobaz

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@247839 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index eb0a558ebb6b964e21e93e3d673cad8044c05d91..975211816596004e5f2161e44410421ff2e3236b 100644 (file)
@@ -21150,8 +21150,7 @@ static struct ast_channel *sip_request_call(const char *type, int format, void *
                        p->owner? p->owner->name : "", "SIP", p->callid, p->fullcontact, p->peername);
        sip_pvt_unlock(p);
        if (!tmpc) {
-               dialog_cleanup_and_destroy(p);
-               dialog_unref(p); /* sip_destroy(p); */
+               dialog_cleanup_and_destroy(p); /* sip_destroy(p); */
        }
        ast_update_use_count();
        restart_monitor();