Destroy configs when they are no longer used

https://reviewboard.asterisk.org/r/1834/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@360712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Terry Wilson
2012-03-28 19:06:03 +00:00
parent 390e8c1f73
commit d58fe85724
5 changed files with 8 additions and 0 deletions

View File

@@ -462,6 +462,7 @@ static int my_load_module(int reload)
if (reload) {
AST_RWLIST_UNLOCK(&columns);
}
ast_config_destroy(cfg);
return AST_MODULE_LOAD_SUCCESS;
}
@@ -502,6 +503,7 @@ static int my_load_module(int reload)
if (reload) {
AST_RWLIST_UNLOCK(&columns);
}
ast_config_destroy(cfg);
return AST_MODULE_LOAD_FAILURE;
}