summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2010-04-13 19:17:48 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2010-04-13 19:17:48 +0000
commite148ffc00f672494c26a797f52e17b1f93827c9b (patch)
tree221d045638ea0a4731e4a4fab0badff321717a38
parent2724f89bba5b9c442e6e9d00bcfe7c36bf683b08 (diff)
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/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@257191 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index e8d9e4550..99f914f44 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -5676,7 +5676,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