Recode of the system function malloc