Merged revisions 33781 via svnmerge from
[asterisk/asterisk.git] / apps / app_festival.c
index 6a67ad5..caec727 100644 (file)
@@ -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;