Let $f:\mathbb{C}\rightarrow \mathbb{C}$ be a continuous function on $\mathbb{C}$ and holomorphic in $\mathbb{C}\setminus \mathbb{R}$. Prove that for every closed curve $\gamma$: $\int_\gamma f(z)\,dz=0$.
So if $\gamma$ does not intersect $\mathbb{R}$ at all then we know that $\int_ \gamma f=0$ from Cauchy's theorem, but I don't know how to continue from here...