diff --git a/res/res_phoneprov.c b/res/res_phoneprov.c index d89537308f..16c90df4b3 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; }