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

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Nov 19 23:44:44 MST 2006


Author: rizzo
Date: Mon Nov 20 00:44:44 2006
New Revision: 47841

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47841
Log:
when destroying a packet, also release its reference to the sip_pvt (dialog).
This should fix one of the bugs i was seeing about leaking references.


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?view=diff&rev=47841&r1=47840&r2=47841
==============================================================================
--- team/rizzo/astobj2/channels/chan_sip.c (original)
+++ team/rizzo/astobj2/channels/chan_sip.c Mon Nov 20 00:44:44 2006
@@ -3197,6 +3197,7 @@
 		p->packets = p->packets->next;
 		if (cp->retransid > -1)
 			ast_sched_del(sched, cp->retransid);
+		cp->pvt = pvt_unref(cp->pvt);
 		free(cp);
 	}
 #ifdef USE_AO2



More information about the asterisk-commits mailing list