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; } }