aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authortwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-09 20:30:21 +0000
committertwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-09 20:30:21 +0000
commita1b0a6cfcdabb4b9783c990ff7349cddd06176f0 (patch)
treeae3578fc9343b336e2e1174975134335f72f6401 /res
parent46b49149a6737567fb05a8687c55ffb17abfbad0 (diff)
Merged revisions 168142 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r168142 | twilson | 2009-01-09 14:25:25 -0600 (Fri, 09 Jan 2009) | 7 lines Don't leak memory if phoneprov.conf does not exist (closes issue #14203) Reported by: jamesgolovich Patches: asterisk-phoneprovleak.diff.txt uploaded by jamesgolovich (license 176) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@168157 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_phoneprov.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/res/res_phoneprov.c b/res/res_phoneprov.c
index d26aed722..db87fccba 100644
--- a/res/res_phoneprov.c
+++ b/res/res_phoneprov.c
@@ -943,6 +943,7 @@ static int set_config(void)
if (!(phoneprov_cfg = ast_config_load("phoneprov.conf", config_flags))) {
ast_log(LOG_ERROR, "Unable to load config phoneprov.conf\n");
+ ast_config_destroy(cfg);
return -1;
}