diff options
author | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-09 20:28:16 +0000 |
---|---|---|
committer | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-09 20:28:16 +0000 |
commit | 2473b47929a702b6695fa98e4799f3194034b142 (patch) | |
tree | 205c910a9a5f8130f8bcaf96a255cc6d64c47df4 /res | |
parent | 0b6d13e716bc68171ad26ab72bb0c947011db235 (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.0@168152 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_phoneprov.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/res/res_phoneprov.c b/res/res_phoneprov.c index d89537308..16c90df4b 100644 --- a/res/res_phoneprov.c +++ b/res/res_phoneprov.c @@ -783,6 +783,7 @@ static int set_config(void) if (!(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; } |