mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
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
This commit is contained in:
@@ -472,6 +472,9 @@ static int festival_exec(struct ast_channel *chan, void *vdata)
|
|||||||
if ( read_data == -1 )
|
if ( read_data == -1 )
|
||||||
{
|
{
|
||||||
ast_log(LOG_WARNING,"Unable to read from cache/festival fd");
|
ast_log(LOG_WARNING,"Unable to read from cache/festival fd");
|
||||||
|
close(fd);
|
||||||
|
ast_config_destroy(cfg);
|
||||||
|
LOCAL_USER_REMOVE(u);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
n += read_data;
|
n += read_data;
|
||||||
|
|||||||
Reference in New Issue
Block a user