diff options
author | Terry Wilson <twilson@digium.com> | 2009-01-09 20:25:25 +0000 |
---|---|---|
committer | Terry Wilson <twilson@digium.com> | 2009-01-09 20:25:25 +0000 |
commit | 87318da8ea3a7aeffbc57fffdbcff3dda2851f43 (patch) | |
tree | 38521fe6d5caab27478d9ca131e0cdbe658b1447 /res/res_phoneprov.c | |
parent | 4a9e8078b9733b572795ed8c208c45dd35e50bb0 (diff) |
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: https://origsvn.digium.com/svn/asterisk/trunk@168142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_phoneprov.c')
-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 b05240ac8..d71139e13 100644 --- a/res/res_phoneprov.c +++ b/res/res_phoneprov.c @@ -944,6 +944,7 @@ static int set_config(void) if (!(phoneprov_cfg = ast_config_load("phoneprov.conf", config_flags)) || phoneprov_cfg == CONFIG_STATUS_FILEINVALID) { ast_log(LOG_ERROR, "Unable to load config phoneprov.conf\n"); + ast_config_destroy(cfg); return -1; } |