diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c
index 2987b48dfdfb900820f438bf8a471bf7441127fe..c464576f75f5a0f4a462b714c469dd3fc2f3e5a7 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(&current);
 			if ((current-start) >= timeout) {
 				done = 1;
+				if (f)
+					ast_frfree(f);
 				break;
 			}
 		}