mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-09 20:06:08 +00:00
Fix multiple free of a frame (bug #6058)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7620 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user