Free old lines when reduceling the number of lines