[asterisk-commits] branch 1.2 r9609 - in /branches/1.2: channels/
pbx/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sat Feb 11 12:23:24 MST 2006
Author: russell
Date: Sat Feb 11 13:23:20 2006
New Revision: 9609
URL: http://svn.digium.com/view/asterisk?rev=9609&view=rev
Log:
fix memory leak from not destroying the scheduler context on module unload
Modified:
branches/1.2/channels/chan_iax2.c
branches/1.2/channels/chan_mgcp.c
branches/1.2/channels/chan_sip.c
branches/1.2/pbx/pbx_dundi.c
Modified: branches/1.2/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_iax2.c?rev=9609&r1=9608&r2=9609&view=diff
==============================================================================
--- branches/1.2/channels/chan_iax2.c (original)
+++ branches/1.2/channels/chan_iax2.c Sat Feb 11 13:23:20 2006
@@ -9506,6 +9506,7 @@
ast_channel_unregister(&iax2_tech);
delete_users();
iax_provision_unload();
+ sched_context_destroy(sched);
return 0;
}
Modified: branches/1.2/channels/chan_mgcp.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_mgcp.c?rev=9609&r1=9608&r2=9609&view=diff
==============================================================================
--- branches/1.2/channels/chan_mgcp.c (original)
+++ branches/1.2/channels/chan_mgcp.c Sat Feb 11 13:23:20 2006
@@ -4388,6 +4388,7 @@
ast_cli_unregister(&cli_debug);
ast_cli_unregister(&cli_no_debug);
ast_cli_unregister(&cli_mgcp_reload);
+ sched_context_destroy(sched);
return 0;
}
Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?rev=9609&r1=9608&r2=9609&view=diff
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Sat Feb 11 13:23:20 2006
@@ -13219,6 +13219,7 @@
clear_realm_authentication(authl);
clear_sip_domains();
close(sipsock);
+ sched_context_destroy(sched);
return 0;
}
Modified: branches/1.2/pbx/pbx_dundi.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/pbx/pbx_dundi.c?rev=9609&r1=9608&r2=9609&view=diff
==============================================================================
--- branches/1.2/pbx/pbx_dundi.c (original)
+++ branches/1.2/pbx/pbx_dundi.c Sat Feb 11 13:23:20 2006
@@ -4726,6 +4726,7 @@
ast_unregister_switch(&dundi_switch);
ast_custom_function_unregister(&dundi_function);
res = ast_unregister_application(app);
+ sched_context_destroy(sched);
return res;
}
More information about the asterisk-commits
mailing list