Merged revisions 318549 via svnmerge from
authorTerry Wilson <twilson@digium.com>
Wed, 11 May 2011 18:50:51 +0000 (18:50 +0000)
committerTerry Wilson <twilson@digium.com>
Wed, 11 May 2011 18:50:51 +0000 (18:50 +0000)
commitda4016544edb353915db85ca8e9b74dfcb4e12aa
tree4e685a0314fe0ab6ac932301e3065d3304e451ea
parentd1e27b1026790fdec5de0497415952cd7df31c45
Merged revisions 318549 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r318549 | twilson | 2011-05-11 13:39:48 -0500 (Wed, 11 May 2011) | 27 lines

  Merged revisions 318548 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2

  ........
    r318548 | twilson | 2011-05-11 12:15:39 -0500 (Wed, 11 May 2011) | 19 lines

    Clean up several chan_sip reference leaks

    Several situations in the code could lead to peers or sip_pvt references
    being leaked. This would cause RTP ports to never be destroyed (leading
    to exhaustion of all available RTP ports) and memory leaks.

    The original patch for this issue from rgagnon was the result of an
    obscene amount of testing and hard work, for which I am very grateful. I
    did some cleanup and added a few additional refcount fixes that I found.

    (closes issue #17255)
    Reported by: kvveltho
    Patches:
          tag-1.6.2.17-r309252-sip-dos-mem-leak-fix.diff uploaded by rgagnon (license 1202)
    Tested by: rgagnon, twilson, wdoekes, loloski

    Review: https://reviewboard.asterisk.org/r/1101/
    Review: https://reviewboard.asterisk.org/r/1207/
    Review: https://reviewboard.asterisk.org/r/1210/
  ........
................

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