In some states, landlords have a duty to mitigate damage resulted from early termination of the lease.
In some states, security deposits are for damages to the dwelling only, not for lost rent.