Fix for new rusts
drops malloc for alloc::heap and removes lifetime shadows