If any law-enforcement officer is investigated, arrested or indicted or otherwise prosecuted on any criminal charge arising out of any act committed in the discharge of his official duties, and no charges are brought, the charge is subsequently dismissed or upon trial he is found not guilty, the governing body of the locality wherein he is appointed may reimburse such officer for reasonable legal fees and expenses incurred by him in defense of such investigation or charge; such reimbursement shall be paid from the treasury of the locality.
When a governing body reimburses its sheriff or a law-enforcement officer in the sheriff's employment for reasonable legal fees and expenses as provided for in this section, then, upon certification of the reimbursement to the Chairman of the Compensation Board by the presiding officer of the governing body, the Compensation Board shall pay to the applicable locality two-thirds of the amount so certified.
Va. Code § 15.2-1711