chan_sip: Remove excess ref of realtime peer before sip_poke_peer.
authorWalter Doekes <walter+asterisk@wjd.nu>
Wed, 1 Oct 2014 09:55:10 +0000 (09:55 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Wed, 1 Oct 2014 09:55:10 +0000 (09:55 +0000)
commit841d978a301db811e36cf444180b6ab1d10c5d71
tree2fd798a4c321a607a4d00e90f024fbec60c2fed8
parentd7c29885ada858308668b296624a23479e54fe05
chan_sip: Remove excess ref of realtime peer before sip_poke_peer.

The peer is referenced at the end of sip_poke_peer, it should not get
an extra ref before the call to sip_poke_peer. This fixes a memory
leak.

ASTERISK-22945 #close
Reported by: ibercom
Tested by: Yuriy Gorlichenko
Patches:
  asterisk11.patch uploaded by ibercom (License #6599)

Review: https://reviewboard.asterisk.org/r/4031/
........

Merged revisions 424176 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 424177 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 424178 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 424179 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@424180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c