Merged revisions 56407 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Fri, 23 Feb 2007 20:21:35 +0000 (20:21 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 23 Feb 2007 20:21:35 +0000 (20:21 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r56407 | russell | 2007-02-23 14:20:00 -0600 (Fri, 23 Feb 2007) | 12 lines

Merged revisions 56406 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r56406 | russell | 2007-02-23 14:17:56 -0600 (Fri, 23 Feb 2007) | 4 lines

Don't destroy mutexes before unregistering all of the entry points from the core.
Also, fix a potential memory leak from not destroying the locks for all of the
possible call numbers (about 32k of them).

........

................

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

channels/chan_iax2.c

index 01994de..a85abee 100644 (file)
@@ -10099,6 +10099,10 @@ static int __unload_module(void)
        delete_users();
        iax_provision_unload();
        sched_context_destroy(sched);
+
+       for (x = 0; x < IAX_MAX_CALLS; x++)
+               ast_mutex_destroy(&iaxsl[x]);
+
        return 0;
 }