diff options
author | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-27 05:06:22 +0000 |
---|---|---|
committer | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-27 05:06:22 +0000 |
commit | d0d886179730d1e84cd88d7c528116f07b7af2c6 (patch) | |
tree | ade41e6dbb89936c97875db720e42c4b5ae50420 /apps/app_festival.c | |
parent | 6664a37250da58edba95bb5d739663bf96151278 (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-x | apps/app_festival.c | 1 |
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; |