]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 257191 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 13 Apr 2010 19:20:42 +0000 (19:20 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 13 Apr 2010 19:20:42 +0000 (19:20 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

........
  r257191 | tilghman | 2010-04-13 14:17:48 -0500 (Tue, 13 Apr 2010) | 10 lines

  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/branches/1.6.0@257206 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 86398dbae28be9dea95c746bd111f41669f621e3..e44be9f7d8e40b1c610907edd232503e717f35b6 100644 (file)
@@ -5220,7 +5220,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));
                                if (p->hangupcause && (res = hangup_cause2sip(p->hangupcause)))
                                        transmit_response_reliable(p, res, &p->initreq);
                                else