mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
Fix 2 memory leaks
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3844 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user