> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# 22 O.S. § 509 — Demurrer sustained - Defendant discharged or bail exonerated, when.

- **Citation**: 22 O.S. § 509
- **Node Type**: section
- **Jurisdiction**: Oklahoma (state)
- **Code Body**: Oklahoma Statutes (through the 2024 or 2025 session, by title) (O.S.)
- **Official Source**: [https://www.oklegislature.gov/OK_Statutes/CompleteTitles/os22.pdf#page=204](https://www.oklegislature.gov/OK_Statutes/CompleteTitles/os22.pdf#page=204)
- **Canonical URL**: [https://corpuslaw.us/codes/oklahoma/title-22/section-22-509](https://corpuslaw.us/codes/oklahoma/title-22/section-22-509)
- **Semantic URL**: [https://corpuslaw.us/codes/oklahoma/title-22/section-22-509](https://corpuslaw.us/codes/oklahoma/title-22/section-22-509)

## Hierarchy

Title 22 — CRIMINAL PROCEDURE

## Text

22-509. Demurrer sustained - Defendant discharged or bail exonerated, when.

If the court do not direct the case to be further prosecuted, the defendant, if in custody, must be discharged, or if admitted to bail, his bail is exonerated, or if he have deposited money instead of bail, the money must be refunded to him.

R.L.1910, § 5796.
