You should ask the landlord for permission to "assign" your place to your friend. It's best to do this in writing. If you don't get permission, your friend could get evicted. If your landlord refuses to let you assign to anyone, or doesn't give you an answer within 7 days, you can get out of the lease, but you can't force the landlord to accept your friend as a tenant. However, if your landlord says you can assign your place but not to your friend, the landlord must have a good reason for refusing your friend.