do not free readline too early