Remove some references which called malloc and free instead of Malloc and Free.