ISS leak is just like on a ship, there are bulkheads that, if there's an emergency, can separate an area that's no longer airtight from the undamaged portion of the station. The former Russian space station Mir actually did once develop a leak, after colliding with an unmanned cargo ship. Everyone survived.
Ulrich Walter