From: Russell Bryant Date: Sun, 11 Jun 2006 14:52:04 +0000 (+0000) Subject: don't leak a frame when breaking out of the loop on a timeout X-Git-Tag: 1.4.0-beta1~943 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=558d3924ac06ab1da3ae2e6b4a02bf92a3354cb3;p=thirdparty%2Fasterisk.git don't leak a frame when breaking out of the loop on a timeout git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33448 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c index 2987b48dfd..c464576f75 100644 --- a/apps/app_speech_utils.c +++ b/apps/app_speech_utils.c @@ -576,6 +576,8 @@ static int speech_background(struct ast_channel *chan, void *data) time(¤t); if ((current-start) >= timeout) { done = 1; + if (f) + ast_frfree(f); break; } }