That would never, ever happen unless the priest in question was a faithless shepherd. In cases of danger of death, the priest is authorized to give General Absolution to all present. No confession is necessary. Of course, once the danger of death is past, if you survive you're expected to make an auricular confession at the first opportunity.
One of the most powerful portrayals of General Absolution is in the splendid book by Giovanni Guareschi, "Comrade Don Camillo", in which a priest goes incognito to the Soviet Union. There is a terrible storm, and all on a ship are in danger of death, and Don Camillo breaks character to give General Absolution to all. Nobody says a word afterwards except the political officer . . . who like the political officer in "Das Boot" is shut up by the rest . . .
It was made into a movie starring the French actor Fernandel.
The movie could have easily been a hit on the Catholic Church. If so, it was effective in that it took many years for me to move beyond that and see the church as a whole instead of one incident. Many on the left refuse to take that holistic view. They never get past their own closed-off world.