]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8077 #resolve [Memory leak in conference_record thread]
authorBrian West <brian@freeswitch.org>
Thu, 27 Aug 2015 20:19:12 +0000 (15:19 -0500)
committerBrian West <brian@freeswitch.org>
Thu, 27 Aug 2015 20:19:12 +0000 (15:19 -0500)
src/mod/applications/mod_conference/conference_record.c

index f0c5f91316044aa8c70251c2ac6263ce30ee8f4c..5ff2dc18dcaa09127712e1f2cc5be2e83611f1b0 100644 (file)
@@ -163,10 +163,6 @@ void *SWITCH_THREAD_FUNC conference_record_thread_run(switch_thread_t *thread, v
        int flags = 0;
        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) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Read Lock Fail\n");
                return NULL;