various: cleanup issues found during leak hunt
authorScott Griepentrog <sgriepentrog@digium.com>
Fri, 6 Feb 2015 21:26:46 +0000 (21:26 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Fri, 6 Feb 2015 21:26:46 +0000 (21:26 +0000)
commit7ca1a0da04f6363324274aa7065a12f613f6cee0
tree0483377d4b20e19c873b72f1b0161fad03beac08
parenta79c920aa1a1880b462253b51068adf0a8db99e2
various: cleanup issues found during leak hunt

In this collection of small patches to prevent
Valgrind errors are: fixes for reference leaks
in config hooks, evaluating a parameter beyond
bounds, and accessing a structure after a lock
where it could have been already free'd.

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

Merged revisions 431583 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@431584 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/config.c
main/utils.c
res/res_pjsip.c