Added free and return statement to new case.