Great classic Roger Corman directed horror movie The Pit and the Pendulum with Vincent Price had a similar ending. He was deranged and believed he was a relative from the Inquisition but in real life his evil wife Barbara Steele had cheated on him. In the end she was put in the iron maiden with spikes in her as she screamed, buried alive. Her wide eyes were the last things seen in the fade to end credits.
From Filmfredonia:
The ending is technically happy as the good guys stumble away unharmed, and yet Corman saves up one of the most coldly ironic final shots in horror film history, as Catherine, Francis, and Maximillian leave the dungeon. “No-one shall enter this room again,” Catherine vows, only for Corman to veer his camera back to the iron maiden from which the gagged Elizabeth stares in silent mortification, doomed to the nastiest possible punishment for her crime. The ritualistic final quote direct from Poe that ends the film ironically fills in a description of the very sound Elizabeth can’t make: the primal scream of purgative fear.
Barbara Steele was also put into a spiked iron maiden in Mario Bava's Black Sunday.
The screaming woman also reminds me of another Poe story where a man builds a wall only he’s on the wrong side of the wall. Or maybe that is a Twilight Zone rendition. “The Cask of Amontillado” sounds like it, but in reading summaries, it doesn’t seem that the wall builder is on the wrong side.
It’s just when it comes to screaming women, I can see building a wall regardless of which side you end up on.
Great movie. Price is at the top of his game, the final scene in the Pit is spectacular.