The residue theorem extablishes that...

(1)

... where...

(2)

... being is every pole of inside the path C. In your case is...

(3)

... so that is...

,

, (4)

If there is a pole isonthe path C and the residue theorem can't be applied...

Kind regards