To free the prisoners in the Cellar of Torment in Untold Legends, you first have to defeat the jailer, Matrok. Once he's down, he'll drop a key that unlocks the cellar leading to Suri Mah. After that, simply follow the blue arrows toward the exit, and you'll have completed the mission.