[Freeswitch-svn] [commit] r13588 - freeswitch/branches/brian/trunk/src/mod/endpoints/mod_sofia

FreeSWITCH SVN mikej at freeswitch.org
Wed Jun 3 12:42:35 PDT 2009


Author: mikej
Date: Wed Jun  3 14:42:34 2009
New Revision: 13588

Log:
don't free helper->payload

Modified:
   freeswitch/branches/brian/trunk/src/mod/endpoints/mod_sofia/sofia_sla.c

Modified: freeswitch/branches/brian/trunk/src/mod/endpoints/mod_sofia/sofia_sla.c
==============================================================================
--- freeswitch/branches/brian/trunk/src/mod/endpoints/mod_sofia/sofia_sla.c	(original)
+++ freeswitch/branches/brian/trunk/src/mod/endpoints/mod_sofia/sofia_sla.c	Wed Jun  3 14:42:34 2009
@@ -378,7 +378,9 @@
 				   SIPTAG_PAYLOAD_STR(xml_fixup),
 				   TAG_END());
 		switch_safe_free(route_uri);
-		switch_safe_free(fixup);
+		if (fixup && fixup != helper->payload) { 
+			free(fixup);
+		}
 	}
 	return 0;
 }



More information about the Freeswitch-svn mailing list