Imam Malik, may Allah have mercy on him, said that if a person has so much debt that all his wealth could go towards paying it off, then if he frees a slave man or woman, it is not valid. Similarly, it is not valid for a minor to free his slave