[asterisk-commits] oej: branch 1.4 r47309 - in /branches/1.4: ./ channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Nov 8 00:40:59 MST 2006


Author: oej
Date: Wed Nov  8 01:40:53 2006
New Revision: 47309

URL: http://svn.digium.com/view/asterisk?rev=47309&view=rev
Log:
Destroy dialog properly at unload (rizzo)

Modified:
    branches/1.4/   (props changed)
    branches/1.4/channels/chan_sip.c

Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?rev=47309&r1=47308&r2=47309&view=diff
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Wed Nov  8 01:40:53 2006
@@ -17022,13 +17022,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(pl, TRUE);
 	}
 	iflist = NULL;
 	ast_mutex_unlock(&iflock);



More information about the asterisk-commits mailing list