From ee4674813f877d5dd0bacd748dd9ff1caee12dbc Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Fri, 21 Aug 2009 22:20:31 +0000 Subject: [PATCH] fix leak introduced in 14555 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14590 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_log.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/switch_log.c b/src/switch_log.c index cd00d24f56..c872b171e0 100644 --- a/src/switch_log.c +++ b/src/switch_log.c @@ -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;