aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-11 20:45:06 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-11 20:45:06 +0000
commit43b0aabc27aaa16152db348bbcf758d3e99dc20d (patch)
tree8392fdcc472504415ec6bdc841f40df88e909c73 /apps
parent85b49f818bb42ef079d51ede150fd733a9508738 (diff)
fix a couple places that would leak a frame
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@33513 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-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 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 {