diff options
Diffstat (limited to 'apps/app_festival.c')
-rw-r--r-- | apps/app_festival.c | 2 |
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 { |