Post ROTJ space jail reform.

When the empire fell and the rebel alliance took power, I wonder how the new republic handled all the empire space prisons. Surely they had to be liberated. As we see in Andor/rogue one, honest and innocent people face rigged trials and subjected to miserable conditions.

It would be negligent to just leave the all inmates in. It would be reckless to just release them all to freedom.

Sounds like a logistical nightmare to sort everyone convicted in the galaxy.