summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-12-25 01:27:47 +0000
committerMark Spencer <markster@digium.com>2005-12-25 01:27:47 +0000
commit96b3a24637e2bb3ff4c8bd7005753d80449a0ae9 (patch)
treef94c8b550e6f4d1a6f35e21be5163349a9659d10 /apps
parenteeb58dcd817de50bcc823c0a5de1c57ba94e8487 (diff)
Fix multiple free of a frame (bug #6058)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7620 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r--apps/app_meetme.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index 45b42efc4..7e060d1ce 100644
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -2264,10 +2264,10 @@ static void *recordthread(void *args)
ast_frfree(cnf->transframe[x]);
cnf->transframe[x] = NULL;
}
- if (cnf->origframe)
- ast_frfree(cnf->origframe);
- cnf->origframe = f;
}
+ if (cnf->origframe)
+ ast_frfree(cnf->origframe);
+ cnf->origframe = f;
ast_mutex_unlock(&cnf->listenlock);
if (s)
res = ast_writestream(s, f);