[asterisk-commits] oej: branch 1.2 r47307 -
/branches/1.2/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Nov 8 00:31:34 MST 2006
Author: oej
Date: Wed Nov 8 01:31:34 2006
New Revision: 47307
URL: http://svn.digium.com/view/asterisk?rev=47307&view=rev
Log:
Remove dialog properly at unload of module (rizzo)
Modified:
branches/1.2/channels/chan_sip.c
Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?rev=47307&r1=47306&r2=47307&view=diff
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Wed Nov 8 01:31:34 2006
@@ -13554,13 +13554,7 @@
while (p) {
pl = p;
p = p->next;
- /* Free associated memory */
- ast_mutex_destroy(&pl->lock);
- if (pl->chanvars) {
- ast_variables_destroy(pl->chanvars);
- pl->chanvars = NULL;
- }
- free(pl);
+ __sip_destroy(p, 1);
}
iflist = NULL;
ast_mutex_unlock(&iflock);
More information about the asterisk-commits
mailing list