]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
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 88897c42d4b5bc2141dd189d7c09a7de5718f46d..2c5bab2c343b41f1dfe8ab1c664ad9c0cbe5cb6c 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 e0ddea19afddf9d238f780fed226514f0b4a869b..397e2408431d9b8d19fcce9a9711613d9566de23 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 1caa3e5caacb788079833e1737ddbf7712f3328d..4841382160a34ae21fd096f75f782a4542aa399e 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 5c876c5014397ddde606b78aeb2d9afccb27954c..e802784479e19879fa303b89f3b5047a198d0cd5 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;
 }