From 2d951bfa417f0e125708d5dac64f2f0b91610e07 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 27 May 2008 09:37:40 +0000 Subject: *) 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() --- src/core/ngx_regex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/ngx_regex.c') 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; -- cgit