Fixed build with jemalloc disabled

This commit is contained in:
Valerii Hiora 2015-02-26 14:17:28 +02:00
parent 3a96d6a981
commit d0bb57cfc3

View File

@ -300,7 +300,7 @@ mod imp {
libc::realloc(ptr as *mut libc::c_void, size as libc::size_t) as *mut u8
} else {
let new_ptr = allocate(size, align);
ptr::copy_memory(new_ptr, ptr, cmp::min(size, old_size));
ptr::copy(new_ptr, ptr, cmp::min(size, old_size));
deallocate(ptr, old_size, align);
new_ptr
}