No sheriff or his deputy or constable shall become the purchaser, either directly or indirectly, of any property by him exposed to sale under any process of law or equity; and every such purchase is absolutely void.