From ecbc33eb785d8911bfb5fc63ebbfb1c468d44ee3 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 13 Jun 2006 04:20:10 +0000 Subject: [PATCH] add a missing close of an open fd, destroy of open config, and removal of the calling channel from the localusers list git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@33781 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_festival.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/app_festival.c b/apps/app_festival.c index 3906d604aa..941e1b7a08 100644 --- a/apps/app_festival.c +++ b/apps/app_festival.c @@ -472,6 +472,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; -- 2.47.2