From: Mark Spencer Date: Wed, 3 Aug 2005 20:22:27 +0000 (+0000) Subject: Fix memory leak X-Git-Tag: 1.0.11.1~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c73ad9e6f966acd50d5b1523d0550b89d1755da9;p=thirdparty%2Fasterisk.git Fix memory leak git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6276 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_dial.c b/apps/app_dial.c index 0d16d0483d..c5d9c92b42 100755 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -414,8 +414,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);