Skip to content
Snippets Groups Projects
Commit 87318da8 authored by Terry Wilson's avatar Terry Wilson
Browse files

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
parent 4a9e8078
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment