Fix the method to release the instance allocated by malloc()
Unify the format