diff --git a/apps/app_alarmreceiver.c b/apps/app_alarmreceiver.c index 2d9c264c05..28d28b4c43 100755 --- a/apps/app_alarmreceiver.c +++ b/apps/app_alarmreceiver.c @@ -817,7 +817,7 @@ static int load_config(void) strncpy(db_family, p, sizeof(db_family) - 1); db_family[sizeof(db_family) - 1] = '\0'; } - + ast_destroy(cfg); } return 0; diff --git a/apps/app_festival.c b/apps/app_festival.c index 82908f0501..e7e0bd4269 100755 --- a/apps/app_festival.c +++ b/apps/app_festival.c @@ -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;