Removed double malloc