mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-20 19:53:10 +00:00
don't leak a frame when breaking out of the loop on a timeout
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33448 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -576,6 +576,8 @@ static int speech_background(struct ast_channel *chan, void *data)
|
|||||||
time(¤t);
|
time(¤t);
|
||||||
if ((current-start) >= timeout) {
|
if ((current-start) >= timeout) {
|
||||||
done = 1;
|
done = 1;
|
||||||
|
if (f)
|
||||||
|
ast_frfree(f);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user