| 120 | |
| 121 | |
| 122 | void * |
| 123 | ngx_palloc(ngx_pool_t *pool, size_t size) |
| 124 | { |
| 125 | #if !(NGX_DEBUG_PALLOC) |
| 126 | if (size <= pool->max) { |
| 127 | return ngx_palloc_small(pool, size, 1); |
| 128 | } |
| 129 | #endif |
| 130 | |
| 131 | return ngx_palloc_large(pool, size); |
| 132 | } |
| 133 | |
| 134 | |
| 135 | void * |
no test coverage detected