]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Merged revisions 164675 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Tue, 16 Dec 2008 16:02:22 +0000 (16:02 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 16 Dec 2008 16:02:22 +0000 (16:02 +0000)
commit4fa477f58cd06e90077ac0c41f0420e18cd594d0
treedbb99ddf2f82ef96fba5796efce3a95c27d1ecf0
parent3c6b69d7a6272232634740e1f1ee23c074f3b387
Merged revisions 164675 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164675 | russell | 2008-12-16 10:00:29 -0600 (Tue, 16 Dec 2008) | 19 lines

Merged revisions 164672 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r164672 | russell | 2008-12-16 09:56:37 -0600 (Tue, 16 Dec 2008) | 11 lines

Fix a memory leak related to the use of the "setvar" configuration option.

The problem was that these variables were being appended to the list of vars
on the sip_pvt every time a re-registration or re-subscription came in.
Since it's just a waste of memory to put them there unless the request was an
INVITE, then the fix is to check the request type before copying the vars.

(closes issue #14037)
Reported by: marvinek
Tested by: russell

........

................

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