Skip to content
Snippets Groups Projects
Commit 558d3924 authored by Russell Bryant's avatar Russell Bryant
Browse files

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
parent b4e21383
Branches
Tags
No related merge requests found
......@@ -576,6 +576,8 @@ static int speech_background(struct ast_channel *chan, void *data)
time(&current);
if ((current-start) >= timeout) {
done = 1;
if (f)
ast_frfree(f);
break;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment