fix buffers
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7681 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
3608c8346f
commit
a8023642ab
|
@ -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");
|
const char *var = switch_channel_get_variable(caller_channel, "call_timeout");
|
||||||
switch_time_t start = 0;
|
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;
|
write_frame.buflen = SWITCH_RECOMMENDED_BUFFER_SIZE;
|
||||||
|
|
||||||
if (var) {
|
if (var) {
|
||||||
|
@ -481,7 +481,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
||||||
uint8_t ring_ready = 0;
|
uint8_t ring_ready = 0;
|
||||||
char *loop_data = NULL;
|
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;
|
write_frame.buflen = SWITCH_RECOMMENDED_BUFFER_SIZE;
|
||||||
|
|
||||||
*bleg = NULL;
|
*bleg = NULL;
|
||||||
|
|
Loading…
Reference in New Issue