a court can free a prisoner