[svn-commits] russell: branch 1.4 r56407 - in /branches/1.4: ./
channels/chan_iax2.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Fri Feb 23 13:20:00 MST 2007
Author: russell
Date: Fri Feb 23 14:20:00 2007
New Revision: 56407
URL: http://svn.digium.com/view/asterisk?view=rev&rev=56407
Log:
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).
........
Modified:
branches/1.4/ (props changed)
branches/1.4/channels/chan_iax2.c
Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.
Modified: branches/1.4/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_iax2.c?view=diff&rev=56407&r1=56406&r2=56407
==============================================================================
--- branches/1.4/channels/chan_iax2.c (original)
+++ branches/1.4/channels/chan_iax2.c Fri Feb 23 14:20:00 2007
@@ -9949,12 +9949,17 @@
delete_users();
iax_provision_unload();
sched_context_destroy(sched);
+
+ ast_mutex_destroy(&waresl.lock);
+
+ for (x = 0; x < IAX_MAX_CALLS; x++)
+ ast_mutex_destroy(&iaxsl[x]);
+
return 0;
}
static int unload_module(void)
{
- ast_mutex_destroy(&waresl.lock);
ast_custom_function_unregister(&iaxpeer_function);
return __unload_module();
}
More information about the svn-commits
mailing list