The tenant has to sublet or assign the leasing agreement.
Sublet - When a tenant, with the consent of the landlord, gives all their obligations and rights of the lease to another person, for a period of time, during the course of the tenancy agreement. The original tenant intends on coming back to the unit before the end of the tenancy agreement.
Assign - When a tenant, with the consent of the landlord, gives all the obligations and rights in a lease to another person. The original tenant will not be returning to the unit.