Fix memory leak with client auth.