Merged revisions 313435 via svnmerge from
authorJonathan Rose <jrose@digium.com>
Tue, 12 Apr 2011 18:50:11 +0000 (18:50 +0000)
committerJonathan Rose <jrose@digium.com>
Tue, 12 Apr 2011 18:50:11 +0000 (18:50 +0000)
commita6695b84cea6dc6c41d6fa4b37ce160ab601398f
tree1f346b97e99f4112e17f38ce5133065cda131421
parent663ed7fd5c2b4144f357125d0d68d76ce04dab25
Merged revisions 313435 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

also went ahead and fixed the problem it introduces before committing.

........
  r313435 | jrose | 2011-04-12 13:44:44 -0500 (Tue, 12 Apr 2011) | 1 line

  fixing stupid mistake with putting code before variable declaration
  ........

    Merged revisions 313433 via svnmerge from
    https://origsvn.digium.com/svn/asterisk/branches/1.6.2

    ........

      r313432 | jrose | 2011-04-12 13:12:29 -0500 (Tue, 12 Apr 2011) | 14 lines

      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/trunk@313437 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_dahdi.c