Fixed an error

Fixed an error: use of undeclared identifier 'malloc'; did you mean 'valloc'?