]> 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:35:11 +0000 (11:35 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 9 Sep 2016 10:33:47 +0000 (10:33 +0000)
commit82a3d659dceb3300acde2c3908f97a0e2bf2d6b3
tree9e0f7d8891cfd8a79ca17aca05082850ee3a75f4
parent345253fb71d08a70f3ae49e59b37445a2c91e421
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-13.patch submitted by Corey Farrell (license 5909)

Change-Id: Id529de1184c68f2f4d254ab41a1f458dafdb5f73
channels/chan_sip.c