[asterisk-commits] mmichelson: branch group/CCSS r230505 - /team/group/CCSS/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 19 14:55:23 CST 2009


Author: mmichelson
Date: Thu Nov 19 14:55:19 2009
New Revision: 230505

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=230505
Log:
* Fix ref leak of sip_pvt struct in transmit_publish
* Remove XXX comment after analyzing the arguments of sip_alloc more thoroughly.


Modified:
    team/group/CCSS/channels/chan_sip.c

Modified: team/group/CCSS/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/channels/chan_sip.c?view=diff&rev=230505&r1=230504&r2=230505
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Thu Nov 19 14:55:19 2009
@@ -11729,7 +11729,6 @@
 	struct sip_request req;
 	char expires_str[10];
 
-	/* XXX Investigate the arguments to sip_alloc more thoroughly */
 	sip_alloc(NULL, NULL, 0, SIP_PUBLISH, NULL);
 
 	req.method = SIP_PUBLISH;
@@ -11761,6 +11760,7 @@
 	pvt->epa_entry = epa_entry;
 
 	send_request(pvt, &req, XMIT_RELIABLE, INITIAL_CSEQ);
+	sip_pvt_unref(pvt, "Done with the sip_pvt allocated for transmitting PUBLISH");
 
 	return 0;
 }




More information about the asterisk-commits mailing list