From c7a31927824fe48c7f946de1cd5d0f2c61ca5d0e Mon Sep 17 00:00:00 2001 From: root Date: Sun, 11 Jun 2006 21:04:25 +0000 Subject: automerge commit git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@33544 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_festival.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/app_festival.c') diff --git a/apps/app_festival.c b/apps/app_festival.c index de1830fd2..3906d604a 100644 --- a/apps/app_festival.c +++ b/apps/app_festival.c @@ -234,11 +234,13 @@ static int send_waveform_to_channel(struct ast_channel *chan, char *waveform, in myf.f.data = myf.frdata; if (ast_write(chan, &myf.f) < 0) { res = -1; + ast_frfree(f); break; } if (res < needed) { /* last frame */ ast_log(LOG_DEBUG, "Last frame\n"); res=0; + ast_frfree(f); break; } } else { -- cgit v1.2.3