If any impurity exits from the abdomen of the deceased after the Ghusl is complete, the entire Ghusl and Wudu must be repeated.

Funeral Rites (أحكام الجنائز) Part 1: Deathbed, Washing, and Shrouding