From: Anthony Minessale Date: Sat, 7 Mar 2009 16:39:18 +0000 (+0000) Subject: tweak X-Git-Tag: v1.0.4~1602 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0f4e1d3788bfac58f75336d49d055a7155cf823;p=thirdparty%2Ffreeswitch.git tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12512 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_memory.c b/src/switch_core_memory.c index 35d292c53f..aa2782d2fe 100644 --- a/src/switch_core_memory.c +++ b/src/switch_core_memory.c @@ -368,9 +368,7 @@ SWITCH_DECLARE(void *) switch_core_perform_alloc(switch_memory_pool_t *pool, swi SWITCH_DECLARE(void) switch_core_memory_reclaim(void) { -#ifdef INSTANTLY_DESTROY_POOLS - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Recycled memory pool(s) disabled.\n"); -#else +#if !defined(PER_POOL_LOCK) && !defined(INSTANTLY_DESTROY_POOLS) switch_memory_pool_t *pool; void *pop = NULL; switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Returning %d recycled memory pool(s)\n", @@ -384,6 +382,7 @@ SWITCH_DECLARE(void) switch_core_memory_reclaim(void) apr_pool_destroy(pool); } #endif + return; } static void *SWITCH_THREAD_FUNC pool_thread(switch_thread_t *thread, void *obj)