summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-11-12 19:28:22 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-11-12 19:28:22 +0000
commit221998f4d4a5af28c7f65aa8b8f3d0da35ef035f (patch)
treea2a91b29e0ac3caea41549e3eb42299286c1c95f /apps
parent611e73746384ba679de6d6d04088d62a56ddd92b (diff)
Merged revisions 156294 via svnmerge from
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
Diffstat (limited to 'apps')
-rw-r--r--apps/app_meetme.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index 9f66162e7..b7c4cc6f2 100644
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -1500,6 +1500,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;