Merged revisions 9609 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Sat, 11 Feb 2006 19:31:11 +0000 (19:31 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 11 Feb 2006 19:31:11 +0000 (19:31 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r9609 | russell | 2006-02-11 14:23:20 -0500 (Sat, 11 Feb 2006) | 2 lines

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

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9610 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c
channels/chan_mgcp.c
channels/chan_sip.c
pbx/pbx_dundi.c

index 88897c4..2c5bab2 100644 (file)
@@ -9484,6 +9484,7 @@ static int __unload_module(void)
        ast_channel_unregister(&iax2_tech);
        delete_users();
        iax_provision_unload();
+       sched_context_destroy(sched);
        return 0;
 }
 
index e0ddea1..397e240 100644 (file)
@@ -4450,6 +4450,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;
 }
index 1caa3e5..4841382 100644 (file)
@@ -13289,6 +13289,7 @@ int unload_module()
        clear_realm_authentication(authl);
        clear_sip_domains();
        close(sipsock);
+       sched_context_destroy(sched);
                
        return 0;
 }
index 5c876c5..e802784 100644 (file)
@@ -4642,6 +4642,7 @@ int unload_module(void)
        ast_cli_unregister(&cli_queryeid);
        ast_unregister_switch(&dundi_switch);
        ast_custom_function_unregister(&dundi_function);
+       sched_context_destroy(sched);
 
        return 0;
 }