The security deposit sticks with the lease. If a tenant moves out early, the remaining tenants and the lease agreement dictate how the security deposit is handled.