The leaves are fine to put in compost. They are poisonous to eat, but you're not going to eat your compost, and in any case the oxalic acid will be well diluted. I think if you put in a lot of leaves at once, they may inhibit the breaking down of the compost, but the amount most people would put in from a couple of crowns is not a problem.