diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-05-27 09:37:40 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-05-27 09:37:40 +0000 |
commit | 2d951bfa417f0e125708d5dac64f2f0b91610e07 (patch) | |
tree | 0b14f8805c1eb6ba8104c1f377ad17fbc6257f70 /src/core/ngx_regex.c | |
parent | 626cd7e7be4d40d19e75e0960752c64aebd544d9 (diff) | |
download | nginx-2d951bfa417f0e125708d5dac64f2f0b91610e07.tar.gz nginx-2d951bfa417f0e125708d5dac64f2f0b91610e07.zip |
*) add ngx_palloc_aligned() to allocate explicitlty aligned memory
*) allows non-aligned memory blocks for small allocations and for odd
length strings on all platforms
*) use ngx_palloc_aligned()
Diffstat (limited to 'src/core/ngx_regex.c')
-rw-r--r-- | src/core/ngx_regex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_regex.c b/src/core/ngx_regex.c index be2dae79b..fb12ab16b 100644 --- a/src/core/ngx_regex.c +++ b/src/core/ngx_regex.c @@ -165,7 +165,7 @@ ngx_regex_malloc(size_t size) #endif if (pool) { - return ngx_palloc(pool, size); + return ngx_palloc_aligned(pool, size); } return NULL; |