diff options
-rw-r--r-- | apps/app_festival.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_festival.c b/apps/app_festival.c index 6a67ad580..caec727c8 100644 --- a/apps/app_festival.c +++ b/apps/app_festival.c @@ -487,6 +487,9 @@ static int festival_exec(struct ast_channel *chan, void *vdata) if ( read_data == -1 ) { ast_log(LOG_WARNING,"Unable to read from cache/festival fd"); + close(fd); + ast_config_destroy(cfg); + LOCAL_USER_REMOVE(u); return -1; } n += read_data; |