]> git.ipfire.org Git - thirdparty/asterisk.git/commit
fixes reload Chan_dahdi memory leak caused by variables
authorJonathan Rose <jrose@digium.com>
Tue, 12 Apr 2011 18:12:29 +0000 (18:12 +0000)
committerJonathan Rose <jrose@digium.com>
Tue, 12 Apr 2011 18:12:29 +0000 (18:12 +0000)
commit41a0ce02eb40c9c6df0d5b11e698612e6859152f
treee1a16c2ca26093b97de0d75d9cf0b3aa3985e143
parent1fd86131c586f8cdb7836e030466d38713edc9c8
fixes reload Chan_dahdi memory leak caused by variables

chan_dahdi reloading with variables set via setvar in chan_dahdi.conf would
stay in the dahdi_pvt structs for individual channels (causing them to just
continue adding the new ones to the list) and also there was a memory leak
causes by the conf objects. This patch resolves both of these by using
ast_variables_destroy during the loading process.

(closes issue #17450)
Reported by: nahuelgreco
Patches:
patch.diff uploaded by jrose (license 1225)
Tested by: tilghman, jrose

Review: https://reviewboard.asterisk.org/r/1170/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@313432 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_dahdi.c