[asterisk-commits] mmichelson: branch group/pimp_my_sip r380651 - /team/group/pimp_my_sip/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 31 11:36:54 CST 2013


Author: mmichelson
Date: Thu Jan 31 11:36:51 2013
New Revision: 380651

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=380651
Log:
Be sure to unref the session's endpoint reference when the session is destroyed.


Modified:
    team/group/pimp_my_sip/res/res_sip_session.c

Modified: team/group/pimp_my_sip/res/res_sip_session.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/res/res_sip_session.c?view=diff&rev=380651&r1=380650&r2=380651
==============================================================================
--- team/group/pimp_my_sip/res/res_sip_session.c (original)
+++ team/group/pimp_my_sip/res/res_sip_session.c Thu Jan 31 11:36:51 2013
@@ -424,6 +424,7 @@
 	ast_sip_destroy_work(session->work);
 	ao2_cleanup(session->datastores);
 	AST_LIST_HEAD_DESTROY(&session->supplements);
+	ao2_cleanup(session->endpoint);
 }
 
 static int add_supplements(struct ast_sip_session *session)




More information about the asterisk-commits mailing list