diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-12 19:26:45 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-12 19:26:45 +0000 |
commit | 1573ed523c17c10f5834490bec0aeb22b54c9dc2 (patch) | |
tree | 3ee8abed0ff6e7e2b0ff59a940fe00d84ddf3900 /apps/app_meetme.c | |
parent | 547d624dffe1976f47bf422662428909ea955fd7 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@156294 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_meetme.c')
-rw-r--r-- | apps/app_meetme.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c index 24ff62fad..7102cd75d 100644 --- a/apps/app_meetme.c +++ b/apps/app_meetme.c @@ -1330,6 +1330,10 @@ static void sla_queue_event_full(enum sla_event_type type, { struct sla_event *event; + if (sla.thread == AST_PTHREADT_NULL) { + return; + } + if (!(event = ast_calloc(1, sizeof(*event)))) return; |