]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Don't allocate new RTP instances on top of old ones.
authorJoshua Colp <jcolp@digium.com>
Tue, 23 Aug 2016 11:31:05 +0000 (11:31 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 9 Sep 2016 10:34:44 +0000 (10:34 +0000)
commite5c409da6e9a0651fa4041e5a02d916aadec858f
tree6865d5fb9cf4487abad93fba20a3a60ff6bbff88
parentd25391e11a328ef1dda1afe822cfb6dc7bc2e3c7
chan_sip: Don't allocate new RTP instances on top of old ones.

In some scenarios dialog_initialize_rtp can be called multiple times on
the same dialog.  This can cause RTP instances to be leaked along with
multiple file descriptors for each instance.

This change makes it so the existing RTP instances are destroyed and
not overwritten, stopping the memory leak.

ASTERISK-26272 #close
patches:
  ASTERISK-26272-11.patch submitted by Corey Farrell (license 5909)

Change-Id: I3c1d94dea8594fe0702168cb979b898ae0f5fc5d
channels/chan_sip.c