]> 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:31:00 +0000 (10:31 +0000)
commitefcfc4c1eeecb5b05b3387d23a1e020514aad527
treeb2a9e802805460d16b069a8bf6602f65e7c94ff9
parentf1ffc22933167608db27ccdae8082ae83254d2e4
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