diff --git a/include/haproxy/pool.h b/include/haproxy/pool.h index 54ec93346..a7d77e4c6 100644 --- a/include/haproxy/pool.h +++ b/include/haproxy/pool.h @@ -63,6 +63,7 @@ struct pool_head *create_pool(char *name, unsigned int size, unsigned int flags) void create_pool_callback(struct pool_head **ptr, char *name, unsigned int size); void *pool_destroy(struct pool_head *pool); void pool_destroy_all(); +int mem_should_fail(const struct pool_head *pool); #ifdef CONFIG_HAP_POOLS diff --git a/src/pool.c b/src/pool.c index 88c579b6d..70095021a 100644 --- a/src/pool.c +++ b/src/pool.c @@ -38,7 +38,6 @@ int mem_poison_byte = -1; #ifdef DEBUG_FAIL_ALLOC static int mem_fail_rate = 0; -static int mem_should_fail(const struct pool_head *); #endif /* Try to find an existing shared pool with the same characteristics and