mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
Fix various memory leaks
main/config.c - cleanup cache fie includes
res/res_security_log.c - unregister logger level
channesl/chan_sip.c - cleanup io context and notify_types
main/translator.c - cleanup at shutdown
main/named_acl.c - cleanup cli commands
main/indications.c - ast_get_indication_tone() unref default_tone_zone if used
(closes issues ASTERISK-22378)
Reported by: Corey Farrell
Patches:
config_shutdown.patch uploaded by coreyfarrell (license 5909)
res_security_log.patch uploaded by coreyfarrell (license 5909)
chan_sip-11.patch uploaded by coreyfarrell (license 5909)
indications_refleak.patch uploaded by coreyfarrell (license 5909)
named_acl-cli_unreg-trunk.patch uploaded by coreyfarrell (license 5909)
translate_shutdown.patch uploaded by coreyfarrell (license 5909)
........
Merged revisions 398102 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 398103 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 398116 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@398124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3248,6 +3248,10 @@ static void config_shutdown(void)
|
||||
|
||||
AST_LIST_LOCK(&cfmtime_head);
|
||||
while ((cfmtime = AST_LIST_REMOVE_HEAD(&cfmtime_head, list))) {
|
||||
struct cache_file_include *cfinclude;
|
||||
while ((cfinclude = AST_LIST_REMOVE_HEAD(&cfmtime->includes, list))) {
|
||||
ast_free(cfinclude);
|
||||
}
|
||||
ast_free(cfmtime);
|
||||
}
|
||||
AST_LIST_UNLOCK(&cfmtime_head);
|
||||
|
||||
Reference in New Issue
Block a user