aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_festival.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-11 20:46:05 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-11 20:46:05 +0000
commitf3c57831d156f29f182af9c0eec4d1684b4f724d (patch)
tree5d1ffd252f3da4ef5c7a10d8d7350b54c277de38 /apps/app_festival.c
parent032eb4fe2a7e92e9b0f71c1795d10dd4e519c896 (diff)
Merged revisions 33513 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r33513 | russell | 2006-06-11 16:45:06 -0400 (Sun, 11 Jun 2006) | 2 lines fix a couple places that would leak a frame ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33514 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_festival.c')
-rw-r--r--apps/app_festival.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_festival.c b/apps/app_festival.c
index e7cbd47bf..6a67ad580 100644
--- a/apps/app_festival.c
+++ b/apps/app_festival.c
@@ -238,11 +238,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 {