Lines Matching refs:header
132 struct allocation_header *header = ((struct allocation_header *) ptr) - 1; in get_header() local
133 if (header->allocation_index >= allocation_index) in get_header()
135 op, ptr, header->allocation_index, allocation_index); in get_header()
136 if (allocations[header->allocation_index] != header) in get_header()
138 op, ptr, allocations[header->allocation_index]); in get_header()
139 return header; in get_header()
178 free_internal (const char *op, struct allocation_header *header) in free_internal() argument
180 size_t index = header->allocation_index; in free_internal()
181 int result = mprotect (header, header->allocation_size, PROT_NONE); in free_internal()
183 fail ("%s: mprotect (%p, %zu): %m", op, header, header->allocation_size); in free_internal()
192 struct allocation_header *header = get_header ("realloc", ptr); in realloc_internal() local
193 size_t old_size = header->allocation_size - sizeof (struct allocation_header); in realloc_internal()
201 free_internal ("realloc", header); in realloc_internal()
239 struct allocation_header *header = get_header ("free", ptr); in free() local
240 free_internal ("free", header); in free()