Properly clean up manager resources on exit
authorMatthew Jordan <mjordan@digium.com>
Sun, 4 Nov 2012 02:38:19 +0000 (02:38 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sun, 4 Nov 2012 02:38:19 +0000 (02:38 +0000)
commit4bd66cb96b6e3ecfb107c1f139e35e7f12f83757
tree076b1b8ff11c42ed6fb4fb55c37c701b9672032c
parenta243f4f153bf405bf1d2475c1394b366df5acf25
Properly clean up manager resources on exit

This patch does two things:
1) It properly unregisters the manager CLI commands
2) It cleans up AMI users on exit.  Prior to this patch, the AMI users
   were not being disposed of properly, resulting in a memory leak.

(closes issue ASTERISK-20646)
Reported by: Corey Farrell
patches:
  manager_shutdown.patch uploaded by Corey Farrell (license 5909)
........

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

Merged revisions 375794 from http://svn.asterisk.org/svn/asterisk/branches/10
........

Merged revisions 375795 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@375796 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/manager.c