(a) The department or sheriff, whichever has custody of a defendant in the case of a felony, or the sheriff in the case of a misdemeanor, shall notify a victim of the offense or a witness who testified against the defendant at the trial for the offense, other than a witness who testified in the course and scope of the witness's official or professional duties, when a defendant convicted of an offense described by Article 56A.502:
(1) completes the defendant's sentence and is released; or
(2) escapes from a correctional facility.
(b) If the department is required by Subsection (a) to give notice to a victim or witness, the department shall also give notice to local law enforcement officials in the county in which the victim or witness resides.