aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_festival.c
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-27 05:06:22 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-27 05:06:22 +0000
commitd0d886179730d1e84cd88d7c528116f07b7af2c6 (patch)
treeade41e6dbb89936c97875db720e42c4b5ae50420 /apps/app_festival.c
parent6664a37250da58edba95bb5d739663bf96151278 (diff)
Fix 2 memory leaks
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3844 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_festival.c')
-rwxr-xr-xapps/app_festival.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_festival.c b/apps/app_festival.c
index 82908f050..e7e0bd426 100755
--- a/apps/app_festival.c
+++ b/apps/app_festival.c
@@ -305,6 +305,7 @@ static int festival_exec(struct ast_channel *chan, void *vdata)
if (!(festivalcommand = ast_variable_retrieve(cfg, "general", "festivalcommand"))) {
festivalcommand = "(tts_textasterisk \"%s\" 'file)(quit)\n";
}
+ ast_destroy(cfg);
if (!vdata || ast_strlen_zero(vdata)) {
ast_log(LOG_WARNING, "festival requires an argument (text)\n");
return -1;