diff options
author | lmadsen <lmadsen@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-04-13 19:42:36 +0000 |
---|---|---|
committer | lmadsen <lmadsen@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-04-13 19:42:36 +0000 |
commit | cfb015ac13718b29a93bad9801a28b2066bc4152 (patch) | |
tree | 426f3a3a0067f267893d503f7e78456019423fdc | |
parent | f395fd3ebc73037dcb76cef81dc1aefa19a3bc2d (diff) |
Merge changes from 1.6.2 branch and update ChangeLog.v1.6.2.7-rc2
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.6.2.7-rc2@257217 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | ChangeLog | 12 | ||||
-rw-r--r-- | channels/chan_sip.c | 2 |
2 files changed, 13 insertions, 1 deletions
@@ -2,6 +2,18 @@ * Asterisk 1.6.2.7-rc2 Released +2010-04-13 [r257210] Tilghman Lesher <tlesher@digium.com> + + Also unref the pvt when we delete the provisional keepalive job. + + (closes issue #16774) + Reported by: kowalma + Patches: + 20100315__issue16774.diff.txt uploaded by tilghman (license 14) + Tested by: falves11, jamicque + + Review: https://reviewboard.asterisk.org/r/591/ + 2010-04-05 Leif Madsen <lmadsen@digium.com> * Asterisk 1.6.2.7-rc1 Released diff --git a/channels/chan_sip.c b/channels/chan_sip.c index f011f16d3..b05e78383 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6069,7 +6069,7 @@ static int sip_hangup(struct ast_channel *ast) } } else { /* Incoming call, not up */ const char *res; - AST_SCHED_DEL(sched, p->provisional_keepalive_sched_id); + AST_SCHED_DEL_UNREF(sched, p->provisional_keepalive_sched_id, dialog_unref(p, "when you delete the provisional_keepalive_sched_id, you should dec the refcount for the stored dialog ptr")); if (p->hangupcause && (res = hangup_cause2sip(p->hangupcause))) transmit_response_reliable(p, res, &p->initreq); else |