[Freeswitch-svn] [commit] r7681 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Mon Feb 18 16:34:06 EST 2008


Author: anthm
Date: Mon Feb 18 16:34:06 2008
New Revision: 7681

Modified:
   freeswitch/trunk/src/switch_ivr_originate.c

Log:
fix buffers

Modified: freeswitch/trunk/src/switch_ivr_originate.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_originate.c	(original)
+++ freeswitch/trunk/src/switch_ivr_originate.c	Mon Feb 18 16:34:06 2008
@@ -252,7 +252,7 @@
 	const char *var = switch_channel_get_variable(caller_channel, "call_timeout");
 	switch_time_t start = 0;
 	
-	write_frame.data = malloc(SWITCH_RECOMMENDED_BUFFER_SIZE);
+	switch_zmalloc(write_frame.data, SWITCH_RECOMMENDED_BUFFER_SIZE);
 	write_frame.buflen = SWITCH_RECOMMENDED_BUFFER_SIZE;
 
 	if (var) {
@@ -481,7 +481,7 @@
 	uint8_t ring_ready = 0;
 	char *loop_data = NULL;
 
-	write_frame.data = malloc(SWITCH_RECOMMENDED_BUFFER_SIZE);
+	switch_zmalloc(write_frame.data, SWITCH_RECOMMENDED_BUFFER_SIZE);
 	write_frame.buflen = SWITCH_RECOMMENDED_BUFFER_SIZE;
 
 	*bleg = NULL;



More information about the Freeswitch-svn mailing list