In cases in which an indigent has an interest in the real property upon which he resides, a county may allow an amount that would otherwise be included in his budget for rentals, when such amount is necessary and will be used entirely for the purpose of preserving so far as possible the retention of such interest to provide a place of residence for the indigent.