[asterisk-commits] branch kpfleming/stringfields - r7769 /team/kpfleming/stringfields/channels/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Jan 3 22:44:39 CST 2006


Author: kpfleming
Date: Tue Jan  3 22:44:38 2006
New Revision: 7769

URL: http://svn.digium.com/view/asterisk?rev=7769&view=rev
Log:
ensure that string fields in sip_registry objects are properly freed

Modified:
    team/kpfleming/stringfields/channels/chan_sip.c

Modified: team/kpfleming/stringfields/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/kpfleming/stringfields/channels/chan_sip.c?rev=7769&r1=7768&r2=7769&view=diff
==============================================================================
--- team/kpfleming/stringfields/channels/chan_sip.c (original)
+++ team/kpfleming/stringfields/channels/chan_sip.c Tue Jan  3 22:44:38 2006
@@ -2078,6 +2078,7 @@
 		ast_sched_del(sched, reg->expire);
 	if (reg->timeout > -1)
 		ast_sched_del(sched, reg->timeout);
+	ast_string_field_free_all(reg);
 	regobjs--;
 	free(reg);
 	



More information about the asterisk-commits mailing list