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:
Mathieu Rene 2009-08-21 22:20:31 +00:00
parent 7820dc0a94
commit ee4674813f
1 changed files with 1 additions and 9 deletions

View File

@ -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;