]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix a SIP request memory leak with TLS connections.
authorJoshua Colp <jcolp@digium.com>
Wed, 5 Dec 2012 16:49:33 +0000 (16:49 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 5 Dec 2012 16:49:33 +0000 (16:49 +0000)
commit9e948f4bce5894684287c5281ad4dc1e7afa45f5
tree4ec87200ec20a8290e4cae5d43a565c44d8def6e
parent711c43088a08148ba673bfc472047cfea4877072
Fix a SIP request memory leak with TLS connections.

During the TLS re-work in chan_sip some TLS specific code was moved
into a separate function. This function operates on a copy of the
incoming SIP request. This copy was never deinitialized causing a
memory leak for each request processed.

This function is now given a SIP request structure which it can use
to copy the incoming request into. This reduces the amount of memory
allocations done since the internal allocated components are reused
between packets and also ensures the SIP request structure is
deinitialized when the TLS connection is torn down.

(closes issue ASTERISK-20763)
Reported by: deti
........

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

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