Or, if you turn left out of the car hire compound and head past the Air Force base into Heraklion, there's a BP petrol station about 700 meters down the road which is open 24 hours a day - the Shell on the National Road closes at night, usually around midnight, but I've seen it closed earlier.
Tim