From: Russell Bryant Date: Sun, 11 Jun 2006 20:45:06 +0000 (+0000) Subject: fix a couple places that would leak a frame X-Git-Tag: 1.2.10~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59224d0f9f628516d8d44bc0e1fed5d44096b2a5;p=thirdparty%2Fasterisk.git fix a couple places that would leak a frame git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@33513 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_festival.c b/apps/app_festival.c index de1830fd2b..3906d604aa 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 {