diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-06-11 14:52:04 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-06-11 14:52:04 +0000 |
commit | 558d3924ac06ab1da3ae2e6b4a02bf92a3354cb3 (patch) | |
tree | 7886d5066ce49804220a4c1454e3cc7c3b765151 /apps/app_speech_utils.c | |
parent | b4e2138311b71396b056ba1d7ae9b9f8a6e8bed0 (diff) |
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
Diffstat (limited to 'apps/app_speech_utils.c')
-rw-r--r-- | apps/app_speech_utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c index 2987b48df..c464576f7 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; } } |