fix memory leak from not destroying the scheduler context on module unload

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@9609 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2
Russell Bryant 20 years ago
parent db467378b4
commit 0ea76a52a9

@ -9506,6 +9506,7 @@ static int __unload_module(void)
ast_channel_unregister(&iax2_tech);
delete_users();
iax_provision_unload();
sched_context_destroy(sched);
return 0;
}

@ -4388,6 +4388,7 @@ int unload_module()
ast_cli_unregister(&cli_debug);
ast_cli_unregister(&cli_no_debug);
ast_cli_unregister(&cli_mgcp_reload);
sched_context_destroy(sched);
return 0;
}

@ -13219,6 +13219,7 @@ int unload_module()
clear_realm_authentication(authl);
clear_sip_domains();
close(sipsock);
sched_context_destroy(sched);
return 0;
}

@ -4726,6 +4726,7 @@ int unload_module(void)
ast_unregister_switch(&dundi_switch);
ast_custom_function_unregister(&dundi_function);
res = ast_unregister_application(app);
sched_context_destroy(sched);
return res;
}

Loading…
Cancel
Save