Using a freed frame causes crashes (closes issue #9317)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@75529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Tilghman Lesher 18 years ago
parent c6e2a119b7
commit 6cab645954

@ -3019,7 +3019,7 @@ static void *recordthread(void *args)
}
if (cnf->origframe)
ast_frfree(cnf->origframe);
cnf->origframe = f;
cnf->origframe = ast_frdup(f);
ast_mutex_unlock(&cnf->listenlock);
if (s)
res = ast_writestream(s, f);

Loading…
Cancel
Save