From: Tilghman Lesher Date: Wed, 12 Nov 2008 19:26:45 +0000 (+0000) Subject: If the SLA thread is not started, then reload causes a memory leak. X-Git-Tag: 1.4.23-rc2~3^2~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e353eeaa1a4b0b7b6ab54df9b59a5df453e745b;p=thirdparty%2Fasterisk.git 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/branches/1.4@156294 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_meetme.c b/apps/app_meetme.c index 24ff62fad8..7102cd75d7 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;