diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-02-23 20:21:35 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-02-23 20:21:35 +0000 |
commit | 70ce880338732326eb834a621e7d1bea545615ff (patch) | |
tree | 270e7c2e26c392ae2d5332e565323934d4557ae4 /channels | |
parent | 64bfd4f8665646c7eb39797ecca45dd159b091d4 (diff) |
Merged revisions 56407 via svnmerge from
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
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_iax2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 01994de4b..a85abeeae 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -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; } |