Fix various problems detected with Valgrind.
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 9 Nov 2009 07:37:52 +0000 (07:37 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 9 Nov 2009 07:37:52 +0000 (07:37 +0000)
commitc0b3c923a46afc12837698a78a11b17a7fc384d8
treea1d863ce8753551f36998a0b98a2e728758de90a
parentec6f1f3ea48d505e7774dd1863c47806789c9755
Fix various problems detected with Valgrind.
 * chan_console accessed pvts after deallocation.
 * cdr_mysql stored a pointer that was freed by realloc()
 * The module loader did not check usecount on shutdown, which led to chan_iax2
 reading a timer that was already unloaded.
 * The event subsystem sometimes creates an event with no IEs.  Due to a corner
 condition, the code would read beyond the memory boundary.
 * res_pktccops did not correctly check whether its monitor thread was started.
(closes issue #16062)
 Reported by: alexanderheinz
 Patches:
       20091109__issue16062.diff.txt uploaded by tilghman (license 14)
 Tested by: tilghman

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@228798 65c4cc65-6c06-0410-ace0-fbb531ad65f3
addons/cdr_mysql.c
channels/chan_console.c
main/event.c
main/loader.c
res/res_pktccops.c