After the war she spent three years in custody but tribunals cleared her of any wrongdoing .