From a8023642abdf9f35f14871a5fa726c515acfc0e8 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 18 Feb 2008 21:34:06 +0000 Subject: [PATCH] fix buffers git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7681 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr_originate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index 71cfdf0851..fe266640c9 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -252,7 +252,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_wait_for_answer(switch_core_session_t 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 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess 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;