From: Automerge Script Date: Fri, 23 Feb 2007 21:26:04 +0000 (+0000) Subject: automerge commit X-Git-Tag: 1.2.16-netsec~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=131fcf61e622f09ce73c7fead0c4568d250eff46;p=thirdparty%2Fasterisk.git automerge commit git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@56455 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index db1ee8e6ac..1e23a726ec 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -9669,15 +9669,20 @@ static int __unload_module(void) delete_users(); iax_provision_unload(); sched_context_destroy(sched); - return 0; -} -int unload_module() -{ ast_mutex_destroy(&iaxq.lock); ast_mutex_destroy(&userl.lock); ast_mutex_destroy(&peerl.lock); ast_mutex_destroy(&waresl.lock); + + for (x = 0; x < IAX_MAX_CALLS; x++) + ast_mutex_destroy(&iaxsl[x]); + + return 0; +} + +int unload_module() +{ ast_custom_function_unregister(&iaxpeer_function); return __unload_module(); }