mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 15:29:05 +00:00
main/formats: Fix crash in ast_format_cmp during non-clean shutdown.
* Backport ast_register_cleanup from Asterisk 12. * Use ast_register_cleanup for format_attr_shutdown. ast_register_cleanup was originally commited in r390122 by dlee. (closes issue ASTERISK-23103) Reported by: JoshE git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@411310 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1128,7 +1128,7 @@ int ast_format_attr_init(void)
|
||||
}
|
||||
|
||||
ast_cli_register_multiple(my_clis, ARRAY_LEN(my_clis));
|
||||
ast_register_atexit(format_attr_shutdown);
|
||||
ast_register_cleanup(format_attr_shutdown);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user