Although very poetic and satisfying to see, let's not kid ourselves. Dedra would have been taken out back and shot without trial for her crimes
There is genuinely no version of events where the ISB supervisor whom the Empire believes intentionally leaked the death star and aided Axis for years doesn't get the old Soviet treatment. They believe Dedra is the one responsible for the Emperor's personal pet project of the past 15 years getting blown up, and that she is one of the most damaging spies for the rebellion. Why in God's name would they EVER put her in an open concept general prison where she can just tell all of the other prisoners the Empire's biggest secrets? Palpatine or Vader would be personally torturing her until they get tired then throw her off of a building, she would never just get filtered through the justice system.
Anyway, 4 credits a pound.