[Freeswitch-dev] Core on module reload

Anthony Minessale anthony.minessale at gmail.com
Fri Jul 2 08:07:16 PDT 2010


if you own the pool you would destroy it.


2010/7/2 Juan Antonio Ibañez Santorum <juanito1982 at gmail.com>

> I'm using the module pool. If I use a own pool, destroying the pool will
> destroy mutex/hash or may I destroy them manually?
>
> Regards
>
> 2010/7/2 Anthony Minessale <anthony.minessale at gmail.com>
>
> If you did it from the pool passed to you in the module init its safe if
>> you made your own pool it must be destroyed.  Like I said, everything you do
>> in the init that has an undo must be called, including 3rd party libs you
>> may be using. You are unloading the module from memory so nothing can
>> linger.
>>
>> On Jul 2, 2010 3:58 AM, "Juan Antonio Ibañez Santorum" <
>> juanito1982 at gmail.com> wrote:
>>
>> I'll try to find any allocated memory not being freed.
>>
>> I can see some modules use switch_mutex_init but no switch_mutex_destroy.
>> I thought that they were allocated from pool not being necessary to free
>> manually. Must I use switch_mutex_destroy when unloading? What about
>> switch_core_hash_init and switch_core_hash_destroy for hash items?
>>
>> Regards
>>
>> 2010/7/1 Anthony Minessale <anthony.minessale at gmail.com>
>>
>>
>> >
>> > everything that you allocated or reserved from FS must be given back and
>> unreserved when you un...
>>
>>
>> _______________________________________________
>> FreeSWITCH-dev mailing list
>> FreeSWITCH-dev at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
>> http://www.freeswitch.org
>>
>>
>> _______________________________________________
>> FreeSWITCH-dev mailing list
>> FreeSWITCH-dev at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
>> http://www.freeswitch.org
>>
>>
>
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20100702/1dc251ec/attachment-0001.html 


More information about the FreeSWITCH-dev mailing list