malloc : added check, or removed