aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_console.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-09 07:37:52 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-09 07:37:52 +0000
commit4424b26d1e85f5734ee58878fff5eaf075ff1f1f (patch)
treea1d863ce8753551f36998a0b98a2e728758de90a /channels/chan_console.c
parentda9964e7b12801627a768f7efaefdcff87d28d4a (diff)
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: http://svn.digium.com/svn/asterisk/trunk@228798 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_console.c')
-rw-r--r--channels/chan_console.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_console.c b/channels/chan_console.c
index 9141c3d1d..df23c3dd1 100644
--- a/channels/chan_console.c
+++ b/channels/chan_console.c
@@ -1500,6 +1500,7 @@ return_error_pa_init:
return_error:
if (pvts)
ao2_ref(pvts, -1);
+ pvts = NULL;
pvt_destructor(&globals);
return AST_MODULE_LOAD_DECLINE;