https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r156294 | tilghman | 2008-11-12 13:26:45 -0600 (Wed, 12 Nov 2008) | 6 lines
If the SLA thread is not started, then reload causes a memory leak.
(closes issue #13889)
Reported by: eliel
Patches:
app_meetme.c.patch uploaded by eliel (license 64)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@156295
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
{
struct sla_event *event;
+ if (sla.thread == AST_PTHREADT_NULL) {
+ return;
+ }
+
if (!(event = ast_calloc(1, sizeof(*event))))
return;