What happens to James Ryder at the end of "The Adventure of the Blue Carbuncle"?

A.
He goes to jail.

B.
He finds the carbuncle.

C.
Holmes lets him go free.

D.
He receives an apology from Holmes.