Klaus Demo nginx / d8ccef0
Slab: removed redundant page calculation (ticket #1721). Maxim Dounin 3 years ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
634634 goto fail;
635635 }
636636
637 n = ((u_char *) p - pool->start) >> ngx_pagesize_shift;
638637 size = slab & ~NGX_SLAB_PAGE_START;
639638
640 ngx_slab_free_pages(pool, &pool->pages[n], size);
639 ngx_slab_free_pages(pool, page, size);
641640
642641 ngx_slab_junk(p, size << ngx_pagesize_shift);
643642