I have found a mistake on someone's code published online: what is the protocol?
Now that I have found the problem what is the protocol for highlighting this, is emailing the author necessary?


It isn't necessary, but it is the right thing to do, if you don't, you're responsible for causing others set backs that will waste them a considerable amount of time.