Skip to content
Snippets Groups Projects
Commit 3c6e6c9c authored by Mark Spencer's avatar Mark Spencer
Browse files

Be sure not to leak frames in certain cases

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6275 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent d8a7545a
No related branches found
No related tags found
No related merge requests found
...@@ -599,8 +599,8 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu ...@@ -599,8 +599,8 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu
if (single && ((f->frametype == AST_FRAME_VOICE) || (f->frametype == AST_FRAME_DTMF))) { if (single && ((f->frametype == AST_FRAME_VOICE) || (f->frametype == AST_FRAME_DTMF))) {
if (ast_write(outgoing->chan, f)) if (ast_write(outgoing->chan, f))
ast_log(LOG_WARNING, "Unable to forward voice\n"); ast_log(LOG_WARNING, "Unable to forward voice\n");
ast_frfree(f);
} }
ast_frfree(f);
} }
if (!*to && (option_verbose > 2)) if (!*to && (option_verbose > 2))
ast_verbose( VERBOSE_PREFIX_3 "Nobody picked up in %d ms\n", orig); ast_verbose( VERBOSE_PREFIX_3 "Nobody picked up in %d ms\n", orig);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment