diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-11 14:52:04 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-11 14:52:04 +0000 |
commit | 556cad8ac4780ba93847bdbfa14e3b4774c8312f (patch) | |
tree | 7886d5066ce49804220a4c1454e3cc7c3b765151 /apps | |
parent | 0c7a0f4c5886f5c9d791bcbe934ae1259300bdf6 (diff) |
don't leak a frame when breaking out of the loop on a timeout
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33448 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-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; } } |