Removed unneccessary malloc cast