mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 15:29:05 +00:00
Cleanup CLI commands on exit for several files.
(issue ASTERISK-20649)
Reported by: Corey Farrell
Patches:
unregister-cli-multiple-all.patch (license #5909) patch uploaded by Corey Farrell
........
Merged revisions 377881 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 377882 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@377883 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3318,7 +3318,9 @@ AST_TEST_DEFINE(test_data_get)
|
||||
static void data_shutdown(void)
|
||||
{
|
||||
ast_manager_unregister("DataGet");
|
||||
ast_cli_unregister_multiple(cli_data, ARRAY_LEN(cli_data));
|
||||
ao2_t_ref(root_data.container, -1, "Unref root_data.container in data_shutdown");
|
||||
root_data.container = NULL;
|
||||
ast_rwlock_destroy(&root_data.lock);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user