mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-13 13:28:34 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user