mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-31 02:33:44 +00:00
FS-8077 #resolve [Memory leak in conference_record thread]
This commit is contained in:
parent
cc6c0be093
commit
ea38fe940b
@ -163,10 +163,6 @@ void *SWITCH_THREAD_FUNC conference_record_thread_run(switch_thread_t *thread, v
|
|||||||
int flags = 0;
|
int flags = 0;
|
||||||
mcu_canvas_t *canvas = NULL;
|
mcu_canvas_t *canvas = NULL;
|
||||||
|
|
||||||
data_buf_len = samples * sizeof(int16_t);
|
|
||||||
|
|
||||||
switch_zmalloc(data_buf, data_buf_len);
|
|
||||||
|
|
||||||
if (switch_thread_rwlock_tryrdlock(conference->rwlock) != SWITCH_STATUS_SUCCESS) {
|
if (switch_thread_rwlock_tryrdlock(conference->rwlock) != SWITCH_STATUS_SUCCESS) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Read Lock Fail\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Read Lock Fail\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user