For how long was the children, 4th imam a.s and sayedda's kept in jail by yazid. and when we're they released?

Nearly one year Ahlul bait as were in prison and they were released in safar 62 ah and then they went to Karbala for the arbaeen of Imam Husain as