diff options
author | Mark Spencer <markster@digium.com> | 2005-08-03 20:17:53 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-08-03 20:17:53 +0000 |
commit | 3c6e6c9c96c7284537fbc66430b8535c51cddea6 (patch) | |
tree | 17eaa0231cff424013e1eaead6a878976678f0d8 /apps | |
parent | d8a7545a82fe9a29e0d9b86103b0c3163caca959 (diff) |
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
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_dial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index f56f08907..8fe9fc43a 100755 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -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 (ast_write(outgoing->chan, f)) ast_log(LOG_WARNING, "Unable to forward voice\n"); - ast_frfree(f); } + ast_frfree(f); } if (!*to && (option_verbose > 2)) ast_verbose( VERBOSE_PREFIX_3 "Nobody picked up in %d ms\n", orig); |