fix leak introduced in 14555
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14590 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
7820dc0a94
commit
ee4674813f
|
@ -283,15 +283,7 @@ static void *SWITCH_THREAD_FUNC log_thread(switch_thread_t *t, void *obj)
|
|||
}
|
||||
switch_mutex_unlock(BINDLOCK);
|
||||
|
||||
switch_safe_free(node->data);
|
||||
#ifdef SWITCH_LOG_RECYCLE
|
||||
if (switch_queue_trypush(LOG_RECYCLE_QUEUE, node) != SWITCH_STATUS_SUCCESS) {
|
||||
free(node);
|
||||
}
|
||||
#else
|
||||
free(node);
|
||||
#endif
|
||||
|
||||
switch_log_node_free(&node);
|
||||
}
|
||||
|
||||
THREAD_RUNNING = 0;
|
||||
|
|
Loading…
Reference in New Issue