Death row prisoner released as he awaits retrial