[asterisk-commits] rizzo: branch rizzo/astobj2 r47296 - /team/rizzo/astobj2/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Nov 7 15:35:29 MST 2006


Author: rizzo
Date: Tue Nov  7 16:35:28 2006
New Revision: 47296

URL: http://svn.digium.com/view/asterisk?rev=47296&view=rev
Log:
make sip_pvt cleanup on unload consistent with the one
during regular operation.


Modified:
    team/rizzo/astobj2/channels/chan_sip.c

Modified: team/rizzo/astobj2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/channels/chan_sip.c?rev=47296&r1=47295&r2=47296&view=diff
==============================================================================
--- team/rizzo/astobj2/channels/chan_sip.c (original)
+++ team/rizzo/astobj2/channels/chan_sip.c Tue Nov  7 16:35:28 2006
@@ -17398,13 +17398,7 @@
 	while (p) {
 		pl = p;
 		p = p->next;
-		/* Free associated memory */
-		ast_mutex_destroy(&pl->pvt_lock);
-		if (pl->chanvars) {
-			ast_variables_destroy(pl->chanvars);
-			pl->chanvars = NULL;
-		}
-		free(pl);
+		__sip_destroy(pl);
 	}
 	dialoglist = NULL;
 	dialoglist_unlock();



More information about the asterisk-commits mailing list