aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-27 05:06:22 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-27 05:06:22 +0000
commitd0d886179730d1e84cd88d7c528116f07b7af2c6 (patch)
treeade41e6dbb89936c97875db720e42c4b5ae50420
parent6664a37250da58edba95bb5d739663bf96151278 (diff)
Fix 2 memory leaks
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3844 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xapps/app_alarmreceiver.c2
-rwxr-xr-xapps/app_festival.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_alarmreceiver.c b/apps/app_alarmreceiver.c
index 2d9c264c0..28d28b4c4 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 82908f050..e7e0bd426 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;