A cooling system including a first coolant line and a second coolant line, at least one first component to be cooled, into which the first coolant line opens, and a first ventilation line. The first ventilation line is fluidically connected to the at least one first component and is configured for ventilating the at least one first component. The first ventilation line opens into the second coolant line.