Ikrimah (may Allah have mercy on him) narrates from Sayyiduna Umar (may Allah be pleased with him) that the umm walad is set free by her child, even if it is stillborn.