don't leak a frame when breaking out of the loop on a timeout
authorRussell Bryant <russell@russellbryant.com>
Sun, 11 Jun 2006 14:52:04 +0000 (14:52 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sun, 11 Jun 2006 14:52:04 +0000 (14:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33448 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_speech_utils.c

index 2987b48..c464576 100644 (file)
@@ -576,6 +576,8 @@ static int speech_background(struct ast_channel *chan, void *data)
                        time(&current);
                        if ((current-start) >= timeout) {
                                done = 1;
+                               if (f)
+                                       ast_frfree(f);
                                break;
                        }
                }