summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-07-09 06:12:21 +0000
committerMark Spencer <markster@digium.com>2003-07-09 06:12:21 +0000
commit26fab309726ed32607858f8514b78ac5d28a7481 (patch)
treee2e1c493a0b507faf713db2d9898a032f47d94af
parent4285e650af0d0f83a1b298b8805caa86b5c0a5c7 (diff)
Fix small leak on app_dial
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1171 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-xapps/app_dial.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 89deefae8..38f70bc5c 100755
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -305,6 +305,7 @@ 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 (ast_write(outgoing->chan, f))
ast_log(LOG_WARNING, "Unable to forward voice\n");
+ ast_frfree(f);
}
}
if (!*to && (option_verbose > 2))