Searched refs:new_ptr (Results 1 – 2 of 2) sorted by relevance
228 void *new_ptr; in debug_realloc() local282 new_ptr = data_from_header(new_hdr); in debug_realloc()283 memcpy( new_ptr, old_ptr, old_size < new_size ? old_size : new_size ); in debug_realloc()290 return new_ptr; in debug_realloc()
1150 ralloc_header *new_ptr; in linear_realloc() local1152 new_ptr = linear_alloc_child(parent, new_size); in linear_realloc()1155 return new_ptr; in linear_realloc()1159 if (likely(new_ptr && old_size)) in linear_realloc()1160 memcpy(new_ptr, old, MIN2(old_size, new_size)); in linear_realloc()1162 return new_ptr; in linear_realloc()