]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Sat, 7 Mar 2009 16:39:18 +0000 (16:39 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sat, 7 Mar 2009 16:39:18 +0000 (16:39 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12512 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_memory.c

index 35d292c53f2edb7f41555ab81fc617b16b415513..aa2782d2feeee0662cddeedeb24e00efc30fac4e 100644 (file)
@@ -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)