Tex. Code of Criminal Procedure § 11.40
This is the official text of Tex. Code of Criminal Procedure § 11.40, part of Texas’s Code of Criminal Procedure — sets the procedural rules for criminal cases in Texas.
Not legal advice. This page reproduces the official text of a government statute for reference only. Laws change, and how a statute applies depends on your specific facts. For advice about your situation, consult a licensed attorney in your state.
§ 11.40. PRISONER DISCHARGED.
Official statutory text
The judge or court before whom a person is brought by writ of habeas corpus shall examine the writ and the papers attached to it; and if no legal cause be shown for the imprisonment or restraint, or if it appear that the imprisonment or restraint, though at first legal, cannot for any cause be lawfully prolonged, the applicant shall be discharged.
Status: in_force · Read it on the official government site
Dealing with a criminal defense matter in Texas?
See all Texas Criminal Defense lawyers
About this page: Statute text is reproduced from official government publishers via the
Open US Law dataset
(Vaquill AI, snapshot v2026.08, CC BY 4.0). Primary legislative text like this is public domain under the government-edicts doctrine
(Georgia v. Public.Resource.Org, 2020). We link every section back to its official source so you can verify it independently.