I dont think he gave a free kick for offside. I think he gave it for a foul because he didn't seem to look at the linesman but he was still very poor.