diff --git a/src/switch_core_memory.c b/src/switch_core_memory.c index 79ea85b15e..0aec436e5d 100644 --- a/src/switch_core_memory.c +++ b/src/switch_core_memory.c @@ -40,7 +40,9 @@ //#define DESTROY_POOLS //#define INSTANTLY_DESTROY_POOLS /*#define LOCK_MORE*/ +#ifndef SWITCH_POOL_RECYCLE #define PER_POOL_LOCK 1 +#endif static struct { switch_mutex_t *mem_lock;