From: David Vossel Date: Thu, 18 Feb 2010 22:45:41 +0000 (+0000) Subject: fixes dialog ref count crash isolated to the 1.6.0 branch X-Git-Tag: 1.6.0.26-rc1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb59fb218ec5322c31947c7c69abcf9373c9ca08;p=thirdparty%2Fasterisk.git fixes dialog ref count crash isolated to the 1.6.0 branch (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 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index eb0a558ebb..9752118165 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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();