mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-09 03:45:27 +00:00
memory leaks: Memory leak cleanup patch by Corey Farrell (second set)
Also covers ast_app_parse_timelen-fail-zero-length.patch, but the patch was
replaced with one of my own.
(issue ASTERISK-22467)
Reported by: Corey Farrell
Patches:
chan_dahdi-cleanup_push.patch uploaded by coreyfarrell (license 5909)
clicompat-r2.patch uploaded by coreyfarrell (license 5909)
codecs-ilbc-doCPLC.patch uploaded by coreyfarrell (license 5909)
data-cleanup-test-registration.patch uploaded by coreyfarrell (license 5909)
main-asterisk-kill-listener.patch uploaded by coreyfarrell (license 5909)
........
Merged revisions 401704 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 401705 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 401706 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@401707 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3313,6 +3313,7 @@ static void data_shutdown(void)
|
||||
ao2_t_ref(root_data.container, -1, "Unref root_data.container in data_shutdown");
|
||||
root_data.container = NULL;
|
||||
ast_rwlock_destroy(&root_data.lock);
|
||||
AST_TEST_UNREGISTER(test_data_get);
|
||||
}
|
||||
|
||||
int ast_data_init(void)
|
||||
@@ -3330,9 +3331,7 @@ int ast_data_init(void)
|
||||
|
||||
res |= ast_manager_register_xml_core("DataGet", 0, manager_data_get);
|
||||
|
||||
#ifdef TEST_FRAMEWORK
|
||||
AST_TEST_REGISTER(test_data_get);
|
||||
#endif
|
||||
|
||||
ast_register_atexit(data_shutdown);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user