Release from Your Lease
If you have to move before the end of your lease term, you and your landlord must agree to release you from your lease. If you end your lease properly, in accordance with the provisions of your lease, the landlord will remove your name from the lease or will void your lease and would enter into a new lease agreement with the new tenant. This will end your liability for future rent or damages.
The landlord will return your security deposit to you, and will collect a new security deposit from the new tenant. This is the safest and clearest arrangement for you.